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
+6 -6
View File
@@ -1,17 +1,17 @@
// KT-306 Ambiguity when different this's have same-looking functions
fun test() {
(fun Foo.() {
(<!UNUSED_EXPRESSION!>fun Foo.() {
bar()
(fun Barr.() {
(<!UNUSED_EXPRESSION!>fun Barr.() {
this.bar()
bar()
})
})
(fun Barr.() {
}<!>)
}<!>)
(<!UNUSED_EXPRESSION!>fun Barr.() {
this.bar()
bar()
})
}<!>)
}
class Foo {