Minor, package "test" in compileJavaAgainstKotlin testData

This commit is contained in:
Alexander Udalov
2014-03-18 19:23:27 +04:00
parent 7b7619d1f3
commit b6b1f2a94a
105 changed files with 243 additions and 43 deletions
@@ -1,3 +1,5 @@
package test;
class JavaClass {
void testMethod() {
Test test = new Test();
@@ -14,4 +16,4 @@ class JavaClass {
catch (E1 e) {}
catch (E2 e) {}
}
}
}
@@ -1,3 +1,5 @@
package test
class E1: Exception()
class E2: Exception()
@@ -1,3 +1,5 @@
package test;
class JavaClass {
void testMethod() {
new None();
@@ -18,4 +20,4 @@ class JavaClass {
catch (E1 e) {}
catch (E2 e) {}
}
}
}
@@ -1,3 +1,5 @@
package test
class E1: Exception()
class E2: Exception()
@@ -1,3 +1,5 @@
package test;
class JavaClass {
void testMethod(One instance) {
try {
@@ -21,13 +23,13 @@ class JavaClass {
catch (E1 e) {}
try {
_DefaultPackage.one(1);
TestPackage.one(1);
}
catch (E1 e) {}
try {
_DefaultPackage.one$default(1, 0);
TestPackage.one$default(1, 0);
}
catch (E1 e) {}
}
}
}
@@ -1,3 +1,5 @@
package test
class E1: Exception()
throws(javaClass<E1>())
@@ -1,3 +1,5 @@
package test;
class JavaClass {
void testMethod() {
Test test = new Test();
@@ -14,4 +16,4 @@ class JavaClass {
catch (E1 e) {}
catch (E2 e) {}
}
}
}
@@ -1,3 +1,5 @@
package test
class E1: Exception()
class E2: Exception()
@@ -1,3 +1,5 @@
package test;
class JavaClass {
public static void main(String[] args) {
try {
@@ -5,4 +7,4 @@ class JavaClass {
}
catch (E1 e) {}
}
}
}
@@ -1,3 +1,5 @@
package test
class E1: Exception()
trait Base<T> {
@@ -1,16 +1,18 @@
package test;
class JavaClass {
void testMethod() {
_DefaultPackage.none();
TestPackage.none();
try {
_DefaultPackage.one();
TestPackage.one();
}
catch (E1 e) {}
try {
_DefaultPackage.two();
TestPackage.two();
}
catch (E1 e) {}
catch (E2 e) {}
}
}
}
@@ -1,3 +1,5 @@
package test
class E1: Exception()
class E2: Exception()
@@ -1,3 +1,5 @@
package test;
class JavaClass {
void testMethod() {
Test test = new Test();
@@ -14,4 +16,4 @@ class JavaClass {
catch (E1 e) {}
catch (E2 e) {}
}
}
}
@@ -1,3 +1,5 @@
package test
class E1: Exception()
class E2: Exception()