KT-306 Ambiguity when different this's have same-looking functions

Test added
This commit is contained in:
Andrey Breslav
2011-09-20 06:48:26 -05:00
parent ee430f1698
commit 517fb64d22
@@ -0,0 +1,22 @@
// KT-306 Ambiguity when different this's have same-looking functions
fun test() {
{Foo.() =>
bar()
{Barr.() =>
this.bar()
bar()
}
}
{Barr.() =>
bar()
}
}
class Foo {
fun bar() {}
}
class Barr {
fun bar() {}
}