Files
kotlin/compiler/testData/codegen/boxAgainstJava/visibility/protectedAndPackage/protectedSuperMethod.kt
2018-08-02 13:19:27 +02:00

33 lines
441 B
Kotlin
Vendored

// IGNORE_BACKEND: JVM_IR
// FILE: test/Foo.java
package test;
public class Foo {
protected void foo(Runnable r) {
r.run();
}
}
// FILE: test.kt
package other
import test.Foo
class Bar : Foo() {
fun bar() {
foo {}
foo(Runnable {})
// super.foo {}
super.foo(Runnable {})
this.foo {}
this.foo(Runnable {})
}
}
fun box(): String {
Bar().bar()
return "OK"
}