30794060a9
Leave only 3*2 = 6 classes: KProperty0, KProperty1, KProperty2 and their mutable analogs, depending on the number of receivers a property takes
11 lines
307 B
Kotlin
Vendored
11 lines
307 B
Kotlin
Vendored
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
|
|
|
import kotlin.reflect.KProperty1
|
|
|
|
class TestClass(var prop: Int)
|
|
open class OtherClass
|
|
fun OtherClass.test(prop: KProperty1<TestClass, Int>): Unit = throw Exception()
|
|
class OtherClass2: OtherClass() {
|
|
val result = test(TestClass::<!UNRESOLVED_REFERENCE!>result<!>)
|
|
}
|