== 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,8 +1,9 @@
// !DIAGNOSTICS: -UNUSED_PARAMETER
val a: Int by A(1)
class A<T: Any>(<!UNUSED_PARAMETER!>i<!>: T) {
class A<T: Any>(i: T) {
fun get(t: Any?, p: PropertyMetadata): T {
t.equals(p) // to avoid UNUSED_PARAMETER warning
throw Exception()
}
}