[Test] Reproduce KT-66313

This commit is contained in:
Dmitriy Novozhilov
2024-03-05 14:31:45 +02:00
committed by Space Team
parent 5fe3fa878e
commit fece081265
7 changed files with 60 additions and 0 deletions
@@ -0,0 +1,15 @@
// ISSUE: KT-66313
val foo: String get() = ""
class Test1 {
private val otherFoo = foo
fun getFoo() = <!TYPECHECKER_HAS_RUN_INTO_RECURSIVE_PROBLEM!>otherFoo<!>
}
class Test2 {
fun getFoo() = otherFoo
private val otherFoo = foo
}
@@ -0,0 +1,15 @@
// ISSUE: KT-66313
val foo: String get() = ""
class Test1 {
private val otherFoo = foo
fun getFoo() = otherFoo
}
class Test2 {
fun getFoo() = otherFoo
private val otherFoo = foo
}