Files
kotlin-fork/compiler/testData/diagnostics/tests/regressions/kt306.kt
T
Andrey Breslav 3d8d92c7d3 JetDiagnosticsTest migrated to TestGenerator
- test data files renamed from *.jet to *.kt
2012-07-10 14:48:11 +04:00

23 lines
354 B
Kotlin

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