1bbcae5ed2
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
26 lines
546 B
Kotlin
Vendored
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")
|
|
}
|
|
}
|