FIR: add K/J test with getValue() / value fake cycle

This commit is contained in:
Mikhail Glukhikh
2019-08-29 15:35:41 +03:00
parent f0f4ddecc0
commit 62bb127fc9
5 changed files with 34 additions and 0 deletions
@@ -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|
}
}