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|
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user