[FIR-TEST] Add test for KT-37638

This commit is contained in:
Dmitriy Novozhilov
2020-03-20 15:20:55 +03:00
parent 5f9f01fe4e
commit 006e1f6528
4 changed files with 29 additions and 0 deletions
@@ -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<!>()
}
@@ -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>#()
}
@@ -1484,6 +1484,11 @@ public class FirDiagnosticsTestGenerated extends AbstractFirDiagnosticsTest {
public void testJavaArrayInGeneric() throws Exception {
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")
@@ -1484,6 +1484,11 @@ public class FirDiagnosticsWithLightTreeTestGenerated extends AbstractFirDiagnos
public void testJavaArrayInGeneric() throws Exception {
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")