Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
4.0.1
-
None
Description
Consider the following:
void test(... args) { args.each { object -> if (object instanceof Iterable) { object.each { test(it) } } } } test(1,[2,3])
The inferred type of "it" is causing NullPointerException at StaticTypeCheckingSupport.isAssignableTo(StaticTypeCheckingSupport.java:489)