[FIR] During resolve, set correctly property reference type in delegate

This commit is contained in:
Mikhail Glukhikh
2020-03-31 17:11:49 +03:00
parent 58e00400f1
commit 036b6c63f6
42 changed files with 181 additions and 73 deletions
@@ -4,10 +4,10 @@ package foo
import kotlin.reflect.KProperty
open class A {
val B.w: Int by MyProperty()
val B.w: Int by <!INAPPLICABLE_CANDIDATE!>MyProperty()<!>
}
val B.r: Int by MyProperty()
val B.r: Int by <!INAPPLICABLE_CANDIDATE!>MyProperty()<!>
val A.e: Int by MyProperty()
@@ -5,7 +5,7 @@ package test
import first.*
import second.*
val a12 by A()
val a12 by <!AMBIGUITY!>A()<!>
// FILE: first.kt
package first