[FIR] Don't compute getter return type if synthetic property is inapplicable
Return type computation of getter for synthetic property, which is incompatible anyway (e.g. because there is no java in the hierarchy) may cause excess dependency between return types of declarations, which may lead to recursive problems in resolution ^KT-66313 Fixed
This commit is contained in:
committed by
Space Team
parent
fece081265
commit
e989e6d397
-15
@@ -1,15 +0,0 @@
|
||||
// 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
|
||||
}
|
||||
@@ -1,3 +1,4 @@
|
||||
// FIR_IDENTICAL
|
||||
// ISSUE: KT-66313
|
||||
|
||||
val foo: String get() = ""
|
||||
|
||||
Reference in New Issue
Block a user