Test for KT-2082 Missing 'Unused expression' warning
#KT-2082 obsolete
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
fun foo(c : Collection<String>) = {
|
||||
c.filter{
|
||||
val s : String? = bar()
|
||||
if (s == null) <!UNUSED_EXPRESSION!>false<!> // here!
|
||||
zoo(<!TYPE_MISMATCH!>s<!>)
|
||||
}
|
||||
}
|
||||
|
||||
fun bar() : String? = null
|
||||
fun zoo(<!UNUSED_PARAMETER!>s<!> : String) : Boolean = true
|
||||
Reference in New Issue
Block a user