Tests for 'suppress' annotation

This commit is contained in:
Andrey Breslav
2013-09-17 19:28:43 +04:00
parent 1dff2fcf36
commit 2dfaa81995
25 changed files with 265 additions and 3 deletions
@@ -0,0 +1,7 @@
class C {
fun foo(): Any? {
[suppress("REDUNDANT_NULLABLE")]
val v: String?? = null <!USELESS_CAST!>as<!> Nothing??
return v
}
}