Support suppression on expressions
This commit is contained in:
+4
@@ -0,0 +1,4 @@
|
||||
fun foo() {
|
||||
[suppress("warnings")]
|
||||
("": String??)
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
fun foo(): Any? {
|
||||
[suppress("REDUNDANT_NULLABLE", "UNNECESSARY_NOT_NULL_ASSERTION")]
|
||||
return ""!! <!USELESS_CAST_STATIC_ASSERT_IS_FINE!>as<!> String??
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
fun foo(): Any? {
|
||||
[suppress("REDUNDANT_NULLABLE")]
|
||||
return null <!USELESS_CAST!>as<!> Nothing??
|
||||
}
|
||||
Reference in New Issue
Block a user