Write protected keyword overriding java package protected function
This commit is contained in:
+7
@@ -0,0 +1,7 @@
|
||||
package foo
|
||||
|
||||
import foo.Intf
|
||||
|
||||
class Impl(): Intf() {
|
||||
<caret>
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
package foo
|
||||
|
||||
import foo.Intf
|
||||
|
||||
class Impl(): Intf() {
|
||||
|
||||
protected override fun getFooBar(): String? {
|
||||
return super<Intf>.getFooBar()
|
||||
}
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
package foo;
|
||||
|
||||
public class Intf {
|
||||
protected String getFooBar() {
|
||||
return "OK";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user