== turned into a safe-call

This commit is contained in:
Andrey Breslav
2015-02-03 18:25:19 +03:00
parent 560b2346a6
commit 0e972acf8c
50 changed files with 149 additions and 142 deletions
@@ -1,12 +1,13 @@
// !DIAGNOSTICS: -UNUSED_PARAMETER -UNUSED_VARIABLE
class Local {
fun foo() {
val <!UNUSED_VARIABLE!>a<!>: Int <!LOCAL_VARIABLE_WITH_DELEGATE!>by Delegate()<!>
val a: Int <!LOCAL_VARIABLE_WITH_DELEGATE!>by Delegate()<!>
}
}
class Delegate {
fun get(t: Any?, p: PropertyMetadata): Int {
t.equals(p) // to avoid UNUSED_PARAMETER warning
return 1
}
}