[FIR-TEST] Add test with problem of invisible static members of supertype

This commit is contained in:
Dmitriy Novozhilov
2019-11-18 17:53:38 +03:00
parent 35dd1cf75a
commit a85ece1d83
3 changed files with 33 additions and 0 deletions
@@ -0,0 +1,23 @@
/*
* See org/jetbrains/kotlin/fir/java/scopes/JavaClassUseSiteMemberScope.kt:93
*/
// FILE: CommonDataKeys.java
public class CommonDataKeys {
public static final String PROJECT = "project";
public final String MEMBER = "member"
}
// FILE: PlatformDataKeys.java
public class PlatformDataKeys extends CommonDataKeys {
}
// FILE: main.kt
fun test() {
val project = PlatformDataKeys.<!UNRESOLVED_REFERENCE!>PROJECT<!>
val member = PlatformDataKeys().MEMBER
}
@@ -0,0 +1,5 @@
FILE: main.kt
public final fun test(): R|kotlin/Unit| {
lval project: <ERROR TYPE REF: Unresolved name: PROJECT> = Q|PlatformDataKeys|.<Unresolved name: PROJECT>#
lval member: R|ft<kotlin/String, kotlin/String?>!| = R|/PlatformDataKeys.PlatformDataKeys|().R|/CommonDataKeys.MEMBER|
}
@@ -833,6 +833,11 @@ public class FirDiagnosticsTestGenerated extends AbstractFirDiagnosticsTest {
runTest("compiler/fir/resolve/testData/resolve/problems/propertyFromJavaPlusAssign.kt");
}
@TestMetadata("superTypeStaticScope.kt")
public void testSuperTypeStaticScope() throws Exception {
runTest("compiler/fir/resolve/testData/resolve/problems/superTypeStaticScope.kt");
}
@TestMetadata("syntheticsVsNormalProperties.kt")
public void testSyntheticsVsNormalProperties() throws Exception {
runTest("compiler/fir/resolve/testData/resolve/problems/syntheticsVsNormalProperties.kt");