blob: e9e86775dc1497d3353028c65ffcfb54fb30b96f [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) {
def var = A.fact(5)
println(<ref>var)
}
}