[FIR] Source for property delegates should not be null

^KT-60327 fixed


Merge-request: KT-MR-13221
Merged-by: Egor Kulikov <Egor.Kulikov@jetbrains.com>
This commit is contained in:
Egor Kulikov
2023-11-29 08:27:53 +00:00
committed by Space Team
parent 5cf33c3556
commit 001e9a4489
15 changed files with 75 additions and 0 deletions
@@ -0,0 +1,4 @@
import kotlin.reflect.KProperty
fun String.getValue(x: Any?, y: KProperty<*>) = ""
val x: String by
@@ -0,0 +1,4 @@
FILE: incompletePropertyWithDelegate.kt
public? final? fun String.getValue(x: Any?, y: KProperty<*>): <implicit> { LAZY_BLOCK }
public? final? val x: Stringby LAZY_EXPRESSION
public? get(): <implicit> { LAZY_BLOCK }
@@ -0,0 +1,8 @@
FILE: incompletePropertyWithDelegate.kt
public? final? fun String.getValue(x: Any?, y: KProperty<*>): <implicit> {
^getValue String()
}
public? final? val x: Stringby ERROR_EXPR(Should have delegate)
public? get(): <implicit> {
^ D|/x|.getValue#(Null(null), ::R|/x|)
}