2ecba6ac39
This directive anyway does not make test run twice with OI, and with NI It only once run the test with specific settings (// LANGUAGE) and ignores irrelevant (OI or NI tags)
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<!>)
|
|
}
|