FIR: add test for synthetic property access
This commit is contained in:
@@ -0,0 +1,6 @@
|
|||||||
|
public/*package*/ open class JavaClass : R|kotlin/Any| {
|
||||||
|
public open operator fun getFoo(): R|ft<kotlin/String, kotlin/String?>|!
|
||||||
|
|
||||||
|
public constructor(): R|JavaClass|
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
class JavaClass {
|
||||||
|
public String getFoo() { return null; }
|
||||||
|
}
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
val x = JavaClass().foo
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
FILE: Test.kt
|
||||||
|
public final val x: R|ft<kotlin/String, kotlin/String?>|! = R|/JavaClass.JavaClass|().R|/JavaClass.foo|
|
||||||
|
public get(): R|ft<kotlin/String, kotlin/String?>|!
|
||||||
+5
@@ -89,6 +89,11 @@ public class FirMultiModuleResolveTestGenerated extends AbstractFirMultiModuleRe
|
|||||||
runTest("idea/testData/fir/multiModule/javaInheritsRawKotlin/");
|
runTest("idea/testData/fir/multiModule/javaInheritsRawKotlin/");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("javaSyntheticProperty")
|
||||||
|
public void testJavaSyntheticProperty() throws Exception {
|
||||||
|
runTest("idea/testData/fir/multiModule/javaSyntheticProperty/");
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("mppFakeOverrides")
|
@TestMetadata("mppFakeOverrides")
|
||||||
public void testMppFakeOverrides() throws Exception {
|
public void testMppFakeOverrides() throws Exception {
|
||||||
runTest("idea/testData/fir/multiModule/mppFakeOverrides/");
|
runTest("idea/testData/fir/multiModule/mppFakeOverrides/");
|
||||||
|
|||||||
Reference in New Issue
Block a user