New J2K: add multi-file conversion tests from old j2k
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
package test;
|
||||
|
||||
public class BaseOtherPackage {
|
||||
protected BaseOtherPackage() {
|
||||
|
||||
}
|
||||
|
||||
protected void foo() {
|
||||
|
||||
}
|
||||
|
||||
protected int i = 1;
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
package test
|
||||
|
||||
open class BaseOtherPackage protected constructor() {
|
||||
protected fun foo() {}
|
||||
protected var i = 1
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package test2;
|
||||
|
||||
import test.*;
|
||||
|
||||
public class DerivedOtherPackage extends BaseOtherPackage {
|
||||
protected DerivedOtherPackage() {
|
||||
super();
|
||||
foo();
|
||||
int i = this.i;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
package test2
|
||||
|
||||
import test.BaseOtherPackage
|
||||
|
||||
class DerivedOtherPackage protected constructor() : BaseOtherPackage() {
|
||||
init {
|
||||
foo()
|
||||
val i = i
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
package test3
|
||||
|
||||
import test.*
|
||||
|
||||
class DerivedOtherPackageKotlin : BaseOtherPackage() {
|
||||
init {
|
||||
foo()
|
||||
val i = this.i
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
package test3
|
||||
|
||||
import test.*
|
||||
|
||||
class DerivedOtherPackageKotlin : BaseOtherPackage() {
|
||||
init {
|
||||
foo()
|
||||
val i = this.i
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user