[FIR-TEST] Add test for KT-37638
This commit is contained in:
+14
@@ -0,0 +1,14 @@
|
|||||||
|
// FILE: Some.java
|
||||||
|
|
||||||
|
package foo;
|
||||||
|
|
||||||
|
class Some {}
|
||||||
|
|
||||||
|
class Another {}
|
||||||
|
|
||||||
|
// FILE: main.kt
|
||||||
|
|
||||||
|
fun test() {
|
||||||
|
val some = Some()
|
||||||
|
val another = <!UNRESOLVED_REFERENCE!>Another<!>()
|
||||||
|
}
|
||||||
+5
@@ -0,0 +1,5 @@
|
|||||||
|
FILE: main.kt
|
||||||
|
public final fun test(): R|kotlin/Unit| {
|
||||||
|
lval some: R|Some| = R|/Some.Some|()
|
||||||
|
lval another: <ERROR TYPE REF: Unresolved name: Another> = <Unresolved name: Another>#()
|
||||||
|
}
|
||||||
Generated
+5
@@ -1484,6 +1484,11 @@ public class FirDiagnosticsTestGenerated extends AbstractFirDiagnosticsTest {
|
|||||||
public void testJavaArrayInGeneric() throws Exception {
|
public void testJavaArrayInGeneric() throws Exception {
|
||||||
runTest("compiler/fir/analysis-tests/testData/resolve/problems/javaArrayInGeneric.kt");
|
runTest("compiler/fir/analysis-tests/testData/resolve/problems/javaArrayInGeneric.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("multipleJavaClassesInOneFile.kt")
|
||||||
|
public void testMultipleJavaClassesInOneFile() throws Exception {
|
||||||
|
runTest("compiler/fir/analysis-tests/testData/resolve/problems/multipleJavaClassesInOneFile.kt");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@TestMetadata("compiler/fir/analysis-tests/testData/resolve/properties")
|
@TestMetadata("compiler/fir/analysis-tests/testData/resolve/properties")
|
||||||
|
|||||||
+5
@@ -1484,6 +1484,11 @@ public class FirDiagnosticsWithLightTreeTestGenerated extends AbstractFirDiagnos
|
|||||||
public void testJavaArrayInGeneric() throws Exception {
|
public void testJavaArrayInGeneric() throws Exception {
|
||||||
runTest("compiler/fir/analysis-tests/testData/resolve/problems/javaArrayInGeneric.kt");
|
runTest("compiler/fir/analysis-tests/testData/resolve/problems/javaArrayInGeneric.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("multipleJavaClassesInOneFile.kt")
|
||||||
|
public void testMultipleJavaClassesInOneFile() throws Exception {
|
||||||
|
runTest("compiler/fir/analysis-tests/testData/resolve/problems/multipleJavaClassesInOneFile.kt");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@TestMetadata("compiler/fir/analysis-tests/testData/resolve/properties")
|
@TestMetadata("compiler/fir/analysis-tests/testData/resolve/properties")
|
||||||
|
|||||||
Reference in New Issue
Block a user