Files
kotlin-fork/compiler/testData/diagnostics/tests/delegatedProperty/provideDelegate/hostAndReceiver1.kt
T
2016-12-12 23:14:07 +03:00

10 lines
280 B
Kotlin
Vendored

// !DIAGNOSTICS: -UNUSED_PARAMETER
object T1 {
operator fun Int.provideDelegate(host: T1, p: Any): Long = 2
operator fun Long.getValue(receiver: String, p: Any): Double = 1.0
val String.test1 by 1
val test2 by <!DELEGATE_SPECIAL_FUNCTION_NONE_APPLICABLE!>1<!>
}