Files
kotlin-fork/compiler/testData/diagnostics/tests/delegatedProperty/thisInDelegate.kt
T
2015-02-10 06:55:46 +01:00

13 lines
232 B
Kotlin
Vendored

// !DIAGNOSTICS: -UNUSED_PARAMETER
val Int.a by Delegate(<!NO_THIS!>this<!>)
class A {
val Int.a by Delegate(<!TYPE_MISMATCH!>this<!>)
}
class Delegate(i: Int) {
fun get(t: Any?, p: PropertyMetadata): Int {
return 1
}
}