Community
Participate
Working Groups
Tested on master brunch (de85546) Code snippet class Test { def static <T> T foo(Test test, (T) => Boolean lambdaMatcher) {} def static void bar(String string) {} def test() { bar(foo [ it?.length > 0 ]) // <== ERROR & WARNING } } produces: - ERROR: Type mismatch: cannot convert from String to byte[] - WARNING: Null-safe feature call of feature with primitive type In my opinion 'it' should be 'String' and neither warning or error should be issued.
Created attachment 264078 [details] Sample Project Still an issue with 2.11