Files
kotlin-fork/compiler/testData/diagnostics/tests/j+k/cantDeclareIfSamAdapterIsInherited.kt
T
Evgeny Gerashchenko 5c8f87658a Made SAM adapters final.
2013-07-12 21:09:22 +04:00

18 lines
287 B
Kotlin

// FILE: Super.java
class Super {
void foo(Runnable r) {
}
}
// FILE: Sub.kt
class Sub1() : Super() {
<!VIRTUAL_MEMBER_HIDDEN!>fun foo(r : (() -> Unit)?)<!> {
}
}
class Sub2() : Super() {
<!OVERRIDING_FINAL_MEMBER!>override<!> fun foo(r : (() -> Unit)?) {
}
}