Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/incompleteHighlighting/FunctionInterface.java
Tagir Valeev 49a5baff95 [incomplete-project-model] Lambda parameter type is potentially convertible to anything
GitOrigin-RevId: 7f20f6011defbdbf8e3a6ce956c2d7f058f25738
2024-06-07 18:19:39 +00:00

14 lines
544 B
Java

import <info descr="Not resolved until the project is fully loaded">com</info>.<info descr="Not resolved until the project is fully loaded">example</info>.*;
class X {
void test(<info descr="Not resolved until the project is fully loaded">MyFunction</info> fn) {}
void use() {
test(() -> {});
test(System.out::println);
}
void unknownMethod() {
<info descr="Not resolved until the project is fully loaded">Util</info>.<info descr="Not resolved until the project is fully loaded">foo</info>(x -> x == 5 ? 1 : 2);
}
}