Files
kotlin-fork/compiler/testData/diagnostics/tests/j+k/canDeclareIfSamAdapterIsInherited.kt
T
Mikhail Glukhikh 0cc861f00b Exposed visibility checking, a set of exposed visibility tests, some test fixes
Effective visibility mechanism introduced.
Local is considered as public, java protected as Kotlin protected, java package private as Kotlin private.
2015-10-07 20:15:16 +03:00

11 lines
180 B
Kotlin
Vendored

// FILE: Super.java
public class Super {
void foo(Runnable r) {
}
}
// FILE: Sub.kt
class Sub() : Super() {
fun foo(<!UNUSED_PARAMETER!>r<!> : (() -> Unit)?) {
}
}