[FIR] Add incoming edges to local class's property initializers

This commit is contained in:
Dmitriy Novozhilov
2020-03-30 10:19:20 +03:00
parent c223ae03ba
commit 3190793b62
3 changed files with 16 additions and 12 deletions
@@ -11,7 +11,7 @@ fun test(del: Any?) {
if (del !is Del) return
class Local {
val delegatedVal by <!INAPPLICABLE_CANDIDATE!>df<!>(del)
val delegatedVal1: Int by <!INAPPLICABLE_CANDIDATE!>df<!>(del)
val delegatedVal by df(del)
val delegatedVal1: Int by df(del)
}
}
@@ -2,10 +2,10 @@ fun test(x: Any?) {
if (x !is String) return
class C {
val v = x.<!UNRESOLVED_REFERENCE!>length<!>
val v = x.length
val vGet: Int
get() = x.<!UNRESOLVED_REFERENCE!>length<!>
get() = x.length
val s: String = x
}