Report UNUSED_EXPRESSION on anonymous functions

This commit is contained in:
Denis Zharkov
2016-03-23 20:11:51 +03:00
parent 16736e3a0e
commit 628f9050fb
6 changed files with 24 additions and 22 deletions
@@ -18,9 +18,9 @@ class Outer {
}
fun outerFun() {
fun () {}
fun B.() {}
<!UNUSED_EXPRESSION!>fun () {}<!>
<!UNUSED_EXPRESSION!>fun B.() {}<!>
@a fun () {}
fun @a A.() {}
<!UNUSED_EXPRESSION!>@a fun () {}<!>
<!UNUSED_EXPRESSION!>fun @a A.() {}<!>
}