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

14 lines
313 B
Kotlin
Vendored

// !DIAGNOSTICS: -UNUSED_PARAMETER
val a: Int by <!DELEGATE_SPECIAL_FUNCTION_AMBIGUITY!>Delegate()<!>
class Delegate {
fun get(t: Any?, p: PropertyMetadata): Int {
return 1
}
fun propertyDelegated(p: PropertyMetadata) {}
fun propertyDelegated(p: PropertyMetadata, s: String = "") {}
}