Files
kotlin-fork/compiler/testData/diagnostics/tests/regressions/kt306.kt
T
2016-03-23 20:11:51 +03:00

24 lines
396 B
Kotlin
Vendored

// KT-306 Ambiguity when different this's have same-looking functions
fun test() {
(<!UNUSED_EXPRESSION!>fun Foo.() {
bar()
(<!UNUSED_EXPRESSION!>fun Barr.() {
this.bar()
bar()
}<!>)
}<!>)
(<!UNUSED_EXPRESSION!>fun Barr.() {
this.bar()
bar()
}<!>)
}
class Foo {
fun bar() {}
}
class Barr {
fun bar() {}
}