FIR: add K/J test with getValue() / value fake cycle
This commit is contained in:
@@ -0,0 +1,6 @@
|
|||||||
|
public open class Base : R|kotlin/Any| {
|
||||||
|
public open field value:
|
||||||
|
|
||||||
|
public constructor(): R|Base|
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
public class Base {
|
||||||
|
public int value = 0;
|
||||||
|
}
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
class Derived : Base() {
|
||||||
|
fun getValue() = value
|
||||||
|
|
||||||
|
fun foo() = value
|
||||||
|
}
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
FILE: Derived.kt
|
||||||
|
public final class Derived : R|Base| {
|
||||||
|
public constructor(): R|Derived| {
|
||||||
|
super<R|Base|>()
|
||||||
|
}
|
||||||
|
|
||||||
|
public final fun getValue(): <ERROR TYPE REF: cycle> {
|
||||||
|
^getValue D|this@R|/Base||.R|/Base.value|
|
||||||
|
}
|
||||||
|
|
||||||
|
public final fun foo(): R|kotlin/Int| {
|
||||||
|
^foo D|this@R|/Base||.R|/Base.value|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
+5
@@ -59,6 +59,11 @@ public class FirMultiModuleResolveTestGenerated extends AbstractFirMultiModuleRe
|
|||||||
runTest("idea/testData/fir/multiModule/basicWithPrimitiveJava/");
|
runTest("idea/testData/fir/multiModule/basicWithPrimitiveJava/");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("fieldAccessFromDerived")
|
||||||
|
public void testFieldAccessFromDerived() throws Exception {
|
||||||
|
runTest("idea/testData/fir/multiModule/fieldAccessFromDerived/");
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("fullWithJavaPredefinedSignature")
|
@TestMetadata("fullWithJavaPredefinedSignature")
|
||||||
public void testFullWithJavaPredefinedSignature() throws Exception {
|
public void testFullWithJavaPredefinedSignature() throws Exception {
|
||||||
runTest("idea/testData/fir/multiModule/fullWithJavaPredefinedSignature/");
|
runTest("idea/testData/fir/multiModule/fullWithJavaPredefinedSignature/");
|
||||||
|
|||||||
Reference in New Issue
Block a user