Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.0-beta-2
-
None
Description
If a class contains a field declared as a closure and that you use that closure as a method, the type checker throws a missing method error.
class FibUtil { private Closure<Integer> fibo FibUtil() { fibo = { int x-> x<1?x:fibo(x-1)+fibo(x-2) } } int fib(int n) { fibo(n) } }