mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 08:31:29 +00:00
Write protected keyword overriding java package protected function
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
package foo
|
||||
|
||||
import foo.Intf
|
||||
|
||||
class Impl(): Intf() {
|
||||
<caret>
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
package foo
|
||||
|
||||
import foo.Intf
|
||||
|
||||
class Impl(): Intf() {
|
||||
|
||||
protected override fun getFooBar(): String? {
|
||||
return super<Intf>.getFooBar()
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package foo;
|
||||
|
||||
public class Intf {
|
||||
protected String getFooBar() {
|
||||
return "OK";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user