Files
kotlin-fork/compiler/testData/diagnostics/tests/delegation/kt44843.fir.kt
T
Ilya Kirillov 1bbcae5ed2 [FIR] fix resolve contract violation from scopes
We cannot call lazy resolve to STATUS phase from scopes as scopes may be accessed on a STATUS phase or earlier

^KT-54890
^KTIJ-23587 fixed
2023-01-13 21:32:51 +00:00

26 lines
546 B
Kotlin
Vendored

// WITH_STDLIB
// FILE: test.kt
val bar2 by <!NO_VALUE_FOR_PARAMETER!>bar2()<!>
// FILE: lt/neworld/compiler/Foo.kt
package lt.neworld.compiler
class Foo {
val bar by <!NO_VALUE_FOR_PARAMETER!>bar()<!>
}
// FILE: lt/neworld/compiler/bar/Bar.kt
package lt.neworld.compiler.bar
import kotlin.properties.ReadOnlyProperty
import kotlin.reflect.KProperty
fun <T, V> bar() = Bar<T, V>()
class Bar<T, V> : ReadOnlyProperty<T, V> {
override fun getValue(thisRef: T, property: KProperty<*>): V {
TODO("Not yet implemented")
}
}