Drop package facades: JVM BE tests passed.

This commit is contained in:
Dmitry Petrov
2015-10-14 13:13:01 +03:00
parent a59cb22bc6
commit 3502c393fc
51 changed files with 120 additions and 571 deletions
@@ -1,7 +1,7 @@
public class Test {
public static void checkCallFromJava() {
try {
String x = _DefaultPackage.foo().iterator().next();
String x = SubstitutedIterableKt.foo().iterator().next();
throw new AssertionError("E should have been thrown");
} catch (E e) { }
}
@@ -1,7 +0,0 @@
import test.TestPackage;
public class Baz {
public static String baz() {
return TestPackage.foo() + TestPackage.bar();
}
}
@@ -1,5 +0,0 @@
@file:JvmName("Util")
@file:JvmMultifileClass
package test
public fun bar(): String = "K"
@@ -1,4 +0,0 @@
@file:[JvmName("Util") JvmMultifileClass]
package test
public fun foo(): String = "O"
@@ -1,5 +0,0 @@
package test
import Baz
fun box(): String = Baz.baz()
@@ -1,11 +1,11 @@
public class Test {
public static String invokeFoo() {
try {
_DefaultPackage.foo(null);
ExtensionKt.foo(null);
}
catch (IllegalArgumentException e) {
try {
_DefaultPackage.getBar(null);
ExtensionKt.getBar(null);
}
catch (IllegalArgumentException f) {
return "OK";