Adjust J2K to latest protected visibility fixes

This commit is contained in:
Denis Zharkov
2016-03-30 11:55:22 +03:00
parent 92be4aee9c
commit 1bc45fb9cf
8 changed files with 58 additions and 42 deletions
@@ -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() {