[LL FIR] add script tests for AbstractFirLazyDeclarationResolveTest

^KT-60728
This commit is contained in:
Dmitrii Gridin
2023-07-28 00:10:08 +02:00
parent 1515fbe99f
commit e99cfbd3b7
230 changed files with 40534 additions and 27 deletions
@@ -0,0 +1,24 @@
// IGNORE_FIR
import kotlin.properties.ReadWriteProperty
import kotlin.reflect.KProperty
fun resolve<caret>Me() {
receive(valueWithExplicitType)
receive(valueWithImplicitType)
variableWithExplicitType = 10
variableWithImplicitType = 10
}
fun receive(value: Int){}
val delegate = object: ReadWriteProperty<Any?, Int> {
override fun getValue(thisRef: Any?, property: KProperty<*>): Int = 1
override fun setValue(thisRef: Any?, property: KProperty<*>, value: Int) {}
}
val valueWithExplicitType: Int by delegate
val valueWithImplicitType by delegate
var variableWithExplicitType: Int by delegate
var variableWithImplicitType by delegate