[FIR-TEST] Add new testdata generated after changes in previous commit
This commit is contained in:
+27
@@ -0,0 +1,27 @@
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
// !WITH_NEW_INFERENCE
|
||||
// NI_EXPECTED_FILE
|
||||
import kotlin.reflect.KProperty
|
||||
|
||||
var a: Int by A()
|
||||
var a1 by A()
|
||||
|
||||
var b: Int by B()
|
||||
|
||||
val cObj = C()
|
||||
var c: String by cObj
|
||||
|
||||
class A {
|
||||
operator fun <T> getValue(t: Any?, p: KProperty<*>): T = null!!
|
||||
operator fun <T> setValue(t: Any?, p: KProperty<*>, x: T) = Unit
|
||||
}
|
||||
|
||||
class B
|
||||
|
||||
operator fun <T> B.getValue(t: Any?, p: KProperty<*>): T = null!!
|
||||
operator fun <T> B.setValue(t: Any?, p: KProperty<*>, x: T) = Unit
|
||||
|
||||
class C
|
||||
|
||||
operator inline fun <reified T> C.getValue(t: Any?, p: KProperty<*>): T = null!!
|
||||
operator inline fun <reified T> C.setValue(t: Any?, p: KProperty<*>, x: T) = Unit
|
||||
Reference in New Issue
Block a user