Sign in
android
/
platform
/
tools
/
idea
/
9b5d02ac8c92b1e71523cc15cb3d168d57fbd898
/
.
/
plugins
/
groovy
/
testdata
/
resolve
/
inference
/
closure2
/
A.groovy
blob: 43ca5068a39aefeb49ba646ac3a83c324226f9e0 [
file
] [
log
] [
blame
]
class
A
{
static
def
fact
=
{
int
i
->
if
(
i
>
1
)
{
return
A
.
fact
(
i
-
1
)
}
else
{
return
1
}
}
public
static
void
main
(
String
[]
args
)
{
Closure
cl
=
A
.
fact
int
var
=
cl
(
5
)
println
(<
ref
>
var
.
intValue
())
}
}