Drop package facades: JVM BE tests passed.
This commit is contained in:
+1
-1
@@ -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"
|
||||
-5
@@ -1,5 +0,0 @@
|
||||
package test
|
||||
|
||||
import Baz
|
||||
|
||||
fun box(): String = Baz.baz()
|
||||
Vendored
+2
-2
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user