Files
kotlin-fork/compiler/testData/diagnostics/tests/delegation/kt44843.fir.kt
T
2021-12-15 22:23:12 +03:00

26 lines
630 B
Kotlin
Vendored

// WITH_STDLIB
// FILE: test.kt
val bar2 by <!DELEGATE_SPECIAL_FUNCTION_AMBIGUITY!>bar2(<!NO_VALUE_FOR_PARAMETER!>)<!><!>
// FILE: lt/neworld/compiler/Foo.kt
package lt.neworld.compiler
class Foo {
val bar by <!DELEGATE_SPECIAL_FUNCTION_AMBIGUITY!>bar(<!NO_VALUE_FOR_PARAMETER!>)<!><!>
}
// 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")
}
}