Method from java overridden in kotlin should have kotlin visibility

This commit is contained in:
Natalia.Ukhorskaya
2013-02-06 18:58:20 +04:00
parent 55d4599b3b
commit 1749e3298c
14 changed files with 85 additions and 19 deletions
@@ -0,0 +1,11 @@
package test
public open class Base : java.lang.Object {
public constructor Base()
public/*package*/ open fun foo() : Unit
}
internal final class Derived : test.Base {
public constructor Derived()
internal open override /*1*/ fun foo() : Unit
}
@@ -0,0 +1,6 @@
package test;
public class Base {
void foo() {}
}
@@ -0,0 +1,5 @@
package test
class Derived(): Base() {
override fun foo() {}
}