Drop package facades: update compiler tests.
This commit is contained in:
@@ -2,6 +2,6 @@ package test;
|
||||
|
||||
class Any {
|
||||
{
|
||||
Object r = TestPackage.anyany(new Object(), null);
|
||||
Object r = AnyKt.anyany(new Object(), null);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,6 +4,6 @@ package test;
|
||||
class ArrayOfIntArray {
|
||||
{
|
||||
int[][] a = new int[0][];
|
||||
int[][] r = TestPackage.ohMy(a);
|
||||
int[][] r = ArrayOfIntArrayKt.ohMy(a);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,6 +4,6 @@ package test;
|
||||
class ArrayOfIntArray {
|
||||
{
|
||||
Integer[][] a = new Integer[0][];
|
||||
Integer[][] r = TestPackage.ohMy(a, null);
|
||||
Integer[][] r = ArrayOfIntegerArrayKt.ohMy(a, null);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,8 +2,8 @@ package test;
|
||||
|
||||
class GenericArray {
|
||||
{
|
||||
TestPackage.noParam("");
|
||||
ExtensionsKt.noParam("");
|
||||
|
||||
TestPackage.param("", "");
|
||||
ExtensionsKt.param("", "");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,6 +2,6 @@ package test;
|
||||
|
||||
class GenericArray {
|
||||
public static void ggff() {
|
||||
String[] s = TestPackage.ffgg(new String[0]);
|
||||
String[] s = GenericArrayKt.ffgg(new String[0]);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,6 +3,6 @@ package test;
|
||||
|
||||
class Hello {
|
||||
public static void xx() {
|
||||
String s = TestPackage.f();
|
||||
String s = HelloKt.f();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,6 +3,6 @@ package test;
|
||||
|
||||
class Int {
|
||||
{
|
||||
int r = TestPackage.lll(1);
|
||||
int r = IntKt.lll(1);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,6 +3,6 @@ package test;
|
||||
|
||||
class IntArray {
|
||||
{
|
||||
int[] r = TestPackage.doNothing(new int[0], null);
|
||||
int[] r = IntArrayKt.doNothing(new int[0], null);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,6 +3,6 @@ package test;
|
||||
|
||||
class IntWithDefault {
|
||||
{
|
||||
int r = TestPackage.www(1);
|
||||
int r = IntWithDefaultKt.www(1);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,6 +3,6 @@ package test;
|
||||
|
||||
class IntArray {
|
||||
{
|
||||
Integer[] r = TestPackage.doNothing(new Integer[0], null);
|
||||
Integer[] r = IntegerArrayKt.doNothing(new Integer[0], null);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,7 +7,7 @@ class ListOfInt {
|
||||
|
||||
public static void hhh() {
|
||||
List<Integer> list = new ArrayList<Integer>();
|
||||
List<Integer> r = TestPackage.ggg(list);
|
||||
List<Integer> r = ListOfIntKt.ggg(list);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -6,6 +6,6 @@ import java.util.ArrayList;
|
||||
class ListString {
|
||||
public static void gg() {
|
||||
List<String> list = new ArrayList<String>();
|
||||
TestPackage.ff(list);
|
||||
ListOfStringKt.ff(list);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,7 +7,7 @@ class ListOfT {
|
||||
|
||||
public static void check() {
|
||||
List<String> list = new ArrayList<String>();
|
||||
List<String> r = TestPackage.listOfT(list);
|
||||
List<String> r = ListOfTKt.listOfT(list);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -8,6 +8,6 @@ class MapOfKString {
|
||||
public static void gfgdgfg() {
|
||||
Map<BigDecimal, String> map = new HashMap<BigDecimal, String>();
|
||||
|
||||
Map<BigDecimal, String> r = TestPackage.fff(map);
|
||||
Map<BigDecimal, String> r = MapOfKStringKt.fff(map);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,6 +8,6 @@ class MapOfKString {
|
||||
public static void gfgdgfg() {
|
||||
Map<String, Integer> map = new HashMap<String, Integer>();
|
||||
|
||||
Map<String, Integer> r = TestPackage.fff(map);
|
||||
Map<String, Integer> r = MapOfStringIntQKt.fff(map);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,6 +4,6 @@ class Question {
|
||||
// id2 is to prevent java type parameter type inference
|
||||
static <T> T id2(T p) { return p; }
|
||||
{
|
||||
java.util.List<? extends String> s = id2(TestPackage.id(null));
|
||||
java.util.List<? extends String> s = id2(QExtendsListStringKt.id(null));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,6 +4,6 @@ class Question {
|
||||
// id2 is to prevent java type parameter type inference
|
||||
static <T> T id2(T p) { return p; }
|
||||
{
|
||||
String s = id2(TestPackage.id(null));
|
||||
String s = id2(QExtendsStringKt.id(null));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,6 +6,6 @@ import java.util.ArrayList;
|
||||
class Vararg {
|
||||
{
|
||||
List<String> list = new ArrayList<String>();
|
||||
List<String> r = TestPackage.gg(list, 3, 4, 5, 6);
|
||||
List<String> r = VarargKt.gg(list, 3, 4, 5, 6);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,6 +2,6 @@ package test;
|
||||
|
||||
class Void {
|
||||
{
|
||||
TestPackage.f();
|
||||
VoidKt.f();
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -2,6 +2,6 @@ package test;
|
||||
|
||||
public class PlatformName {
|
||||
public static void main(String[] args) {
|
||||
TestPackage.bar();
|
||||
PlatformNameKt.bar();
|
||||
}
|
||||
}
|
||||
@@ -13,12 +13,12 @@ class JavaClass {
|
||||
catch (E1 e) {}
|
||||
|
||||
try {
|
||||
TestPackage.one(1);
|
||||
DefaultArgsKt.one(1);
|
||||
}
|
||||
catch (E1 e) {}
|
||||
|
||||
try {
|
||||
TestPackage.one();
|
||||
DefaultArgsKt.one();
|
||||
}
|
||||
catch (E1 e) {}
|
||||
}
|
||||
|
||||
@@ -2,15 +2,15 @@ package test;
|
||||
|
||||
class JavaClass {
|
||||
void testMethod() {
|
||||
TestPackage.none();
|
||||
TopLevelKt.none();
|
||||
|
||||
try {
|
||||
TestPackage.one();
|
||||
TopLevelKt.one();
|
||||
}
|
||||
catch (E1 e) {}
|
||||
|
||||
try {
|
||||
TestPackage.two();
|
||||
TopLevelKt.two();
|
||||
}
|
||||
catch (E1 e) {}
|
||||
catch (E2 e) {}
|
||||
|
||||
Reference in New Issue
Block a user