[java-incomplete-model] Support known constructors with unresolved components

GitOrigin-RevId: 12f529c3eae1abba306c6318f189d08c877f9aa7
This commit is contained in:
Tagir Valeev
2024-06-24 12:09:58 +02:00
committed by intellij-monorepo-bot
parent b6771f471e
commit 7b5b0bd4e4
2 changed files with 12 additions and 4 deletions

View File

@@ -23,6 +23,12 @@ public class Simple {
System.out.println(s.<error descr="Cannot resolve symbol 'field'">field</error>);
}
void callKnownCtor(<info descr="Not resolved until the project is fully loaded">Cls</info> cls) {
new IOException(cls);
// No three-arg ctor anyway
new IOException<error descr="Cannot resolve constructor 'IOException(Cls, Cls, Cls)'">(cls, cls, cls)</error>;
}
void testImports(<info descr="Not resolved until the project is fully loaded">Cls</info>.<info descr="Not resolved until the project is fully loaded">UnusedClass</info> inner) {
<info descr="null">var</info> x = <error descr="Cannot resolve symbol 'Value'">Value</error>;
System.out.println(<info descr="Not resolved until the project is fully loaded">UsedInClassObject</info>.class);