Write protected keyword overriding java package protected function

This commit is contained in:
Natalia.Ukhorskaya
2013-02-06 14:14:43 +04:00
parent 11273f3035
commit 74f05bf659
5 changed files with 31 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
package foo
import foo.Intf
class Impl(): Intf() {
<caret>
}

View File

@@ -0,0 +1,10 @@
package foo
import foo.Intf
class Impl(): Intf() {
protected override fun getFooBar(): String? {
return super<Intf>.getFooBar()
}
}

View File

@@ -0,0 +1,7 @@
package foo;
public class Intf {
protected String getFooBar() {
return "OK";
}
}