[FIR-TEST] Add test with problem of invisible static members of supertype
This commit is contained in:
@@ -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|
|
||||
}
|
||||
+5
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user