== turned into a safe-call
This commit is contained in:
+3
-4
@@ -1,12 +1,11 @@
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
|
||||
val a: Int by <!DELEGATE_PD_METHOD_NONE_APPLICABLE!>Delegate()<!>
|
||||
|
||||
class Delegate {
|
||||
fun get(t: Any?, p: PropertyMetadata): Int {
|
||||
t.equals(p) // to avoid UNUSED_PARAMETER warning
|
||||
return 1
|
||||
}
|
||||
|
||||
fun propertyDelegated<T>(p: PropertyMetadata) {
|
||||
p.equals(p)
|
||||
}
|
||||
fun propertyDelegated<T>(p: PropertyMetadata) {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user