Adjust J2K to latest protected visibility fixes
This commit is contained in:
-1
@@ -1,6 +1,5 @@
|
||||
open class Base internal constructor(x: Int) {
|
||||
var x = 42
|
||||
protected set
|
||||
|
||||
init {
|
||||
this.x = x
|
||||
|
||||
@@ -5,10 +5,14 @@ public class BaseInheritorSamePackage {
|
||||
|
||||
}
|
||||
|
||||
protected void foo() {
|
||||
protected BaseInheritorSamePackage(int x) {
|
||||
|
||||
}
|
||||
|
||||
protected void foo() {
|
||||
new BaseInheritorSamePackage(1);
|
||||
}
|
||||
|
||||
protected int i = 1;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,12 +1,19 @@
|
||||
package test
|
||||
|
||||
open class BaseInheritorSamePackage protected constructor() {
|
||||
|
||||
protected fun foo() {
|
||||
open class BaseInheritorSamePackage {
|
||||
constructor() {
|
||||
|
||||
}
|
||||
|
||||
protected var i = 1
|
||||
protected constructor(x: Int) {
|
||||
|
||||
}
|
||||
|
||||
fun foo() {
|
||||
BaseInheritorSamePackage(1)
|
||||
}
|
||||
|
||||
var i = 1
|
||||
}
|
||||
|
||||
internal class DerivedInheritorSamePackage : BaseInheritorSamePackage() {
|
||||
|
||||
Reference in New Issue
Block a user