685d16ec68
^KT-41729 Fixed
14 lines
347 B
Kotlin
Vendored
14 lines
347 B
Kotlin
Vendored
// Issue: KT-41729
|
|
|
|
import kotlin.reflect.KProperty
|
|
|
|
class Foo {
|
|
operator fun <T> getValue(thisRef: Any?, property: KProperty<*>) = 1
|
|
}
|
|
|
|
fun main(x: Int) {
|
|
val f = Foo()
|
|
val a: Int
|
|
<!VARIABLE_EXPECTED!>get()<!> = f.getValue(null, ::x) // no exception after fix
|
|
<!UNRESOLVED_REFERENCE!>print<!>(<!UNINITIALIZED_VARIABLE!>a<!>)
|
|
} |