Files
kotlin-fork/compiler/testData/diagnostics/tests/labels/labelReferencesInsideObjectExpressions.kt
T
2015-05-12 19:43:17 +02:00

25 lines
369 B
Kotlin
Vendored

interface A {
fun foo()
}
interface B {
fun bar()
}
fun B.b() {
object : A {
override fun foo() {
this@b.bar()
}
}
}
fun test() {
b@ <!UNUSED_FUNCTION_LITERAL!>{ <!DEPRECATED_LAMBDA_SYNTAX!>B.()<!> ->
object : A {
override fun foo() {
this@b.bar()
}
}
}<!>
}