Minor, package "test" in compileJavaAgainstKotlin testData
This commit is contained in:
@@ -1,3 +1,5 @@
|
|||||||
|
package test;
|
||||||
|
|
||||||
class ClassObject {
|
class ClassObject {
|
||||||
void accessToClassObject() {
|
void accessToClassObject() {
|
||||||
WithClassObject.object$.foo();
|
WithClassObject.object$.foo();
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
class WithClassObject {
|
class WithClassObject {
|
||||||
class object {
|
class object {
|
||||||
fun foo() {}
|
fun foo() {}
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
package test;
|
||||||
|
|
||||||
class Simple {
|
class Simple {
|
||||||
void foo() {
|
void foo() {
|
||||||
new A();
|
new A();
|
||||||
|
|||||||
@@ -1 +1,3 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
class A(val a: Int = 1)
|
class A(val a: Int = 1)
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
package test;
|
||||||
|
|
||||||
class Simple {
|
class Simple {
|
||||||
void foo() {
|
void foo() {
|
||||||
new A();
|
new A();
|
||||||
|
|||||||
@@ -1 +1,3 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
class A(val a: Int = 1, val b: String = "default")
|
class A(val a: Int = 1, val b: String = "default")
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
package test;
|
||||||
|
|
||||||
class ExtendsAbstractListT {
|
class ExtendsAbstractListT {
|
||||||
{
|
{
|
||||||
Mine<String> mine = null;
|
Mine<String> mine = null;
|
||||||
|
|||||||
@@ -1 +1,3 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
abstract class Mine<T>() : java.util.AbstractList<T>()
|
abstract class Mine<T>() : java.util.AbstractList<T>()
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
package test;
|
||||||
|
|
||||||
|
|
||||||
class PlainExtendsListString {
|
class PlainExtendsListString {
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1 +1,3 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
abstract class Mine : java.util.List<String>
|
abstract class Mine : java.util.List<String>
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
package test;
|
||||||
|
|
||||||
|
|
||||||
class ImplementsMapPP {
|
class ImplementsMapPP {
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1 +1,3 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
abstract class Mine<P1, P2> : java.util.Map<P2, P1>
|
abstract class Mine<P1, P2> : java.util.Map<P2, P1>
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
package test;
|
||||||
|
|
||||||
class Simple {
|
class Simple {
|
||||||
{
|
{
|
||||||
new Impossible<String>();
|
new Impossible<String>();
|
||||||
|
|||||||
@@ -1 +1,3 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
class Impossible<P>()
|
class Impossible<P>()
|
||||||
|
|||||||
@@ -3,4 +3,3 @@ package test
|
|||||||
enum class MyEnum {
|
enum class MyEnum {
|
||||||
OK
|
OK
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
|
package test;
|
||||||
|
|
||||||
class Any {
|
class Any {
|
||||||
{
|
{
|
||||||
Object r = _DefaultPackage.anyany(new Object(), null);
|
Object r = TestPackage.anyany(new Object(), null);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,2 +1,4 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
// extra parameter is to preserve generic signature
|
// extra parameter is to preserve generic signature
|
||||||
fun anyany(a: Any, ignore: java.util.List<String>) = a
|
fun anyany(a: Any, ignore: java.util.List<String>) = a
|
||||||
|
|||||||
@@ -1,7 +1,9 @@
|
|||||||
|
package test;
|
||||||
|
|
||||||
|
|
||||||
class ArrayOfIntArray {
|
class ArrayOfIntArray {
|
||||||
{
|
{
|
||||||
int[][] a = new int[0][];
|
int[][] a = new int[0][];
|
||||||
int[][] r = _DefaultPackage.ohMy(a);
|
int[][] r = TestPackage.ohMy(a);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1 +1,3 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
fun ohMy(p: Array<IntArray>) = p
|
fun ohMy(p: Array<IntArray>) = p
|
||||||
|
|||||||
@@ -1,7 +1,9 @@
|
|||||||
|
package test;
|
||||||
|
|
||||||
|
|
||||||
class ArrayOfIntArray {
|
class ArrayOfIntArray {
|
||||||
{
|
{
|
||||||
Integer[][] a = new Integer[0][];
|
Integer[][] a = new Integer[0][];
|
||||||
Integer[][] r = _DefaultPackage.ohMy(a, null);
|
Integer[][] r = TestPackage.ohMy(a, null);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,2 +1,4 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
// extra parameter is to make sure generic signature is generated
|
// extra parameter is to make sure generic signature is generated
|
||||||
fun ohMy(p: Array<Array<Int>>, ignore: java.util.List<String>) = p
|
fun ohMy(p: Array<Array<Int>>, ignore: java.util.List<String>) = p
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
|
package test;
|
||||||
|
|
||||||
class JavaClass {
|
class JavaClass {
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
_DefaultPackage.foo$default(1, 0);
|
TestPackage.foo$default(1, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -1 +1,3 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
fun foo(a: Int = 1) {}
|
fun foo(a: Int = 1) {}
|
||||||
@@ -1,3 +1,5 @@
|
|||||||
|
package test;
|
||||||
|
|
||||||
class JavaClass {
|
class JavaClass {
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
Test test = new Test();
|
Test test = new Test();
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
trait Trait {
|
trait Trait {
|
||||||
fun foo()
|
fun foo()
|
||||||
val bar: Int
|
val bar: Int
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
|
package test;
|
||||||
|
|
||||||
class GenericArray {
|
class GenericArray {
|
||||||
public static void ggff() {
|
public static void ggff() {
|
||||||
String[] s = _DefaultPackage.ffgg(new String[0]);
|
String[] s = TestPackage.ffgg(new String[0]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1 +1,3 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
fun <P> ffgg(a: Array<P>) = a
|
fun <P> ffgg(a: Array<P>) = a
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
|
package test;
|
||||||
|
|
||||||
|
|
||||||
class Hello {
|
class Hello {
|
||||||
public static void xx() {
|
public static void xx() {
|
||||||
String s = _DefaultPackage.f();
|
String s = TestPackage.f();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1 +1,3 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
fun f() = "hello"
|
fun f() = "hello"
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
|
package test;
|
||||||
|
|
||||||
|
|
||||||
class Int {
|
class Int {
|
||||||
{
|
{
|
||||||
int r = _DefaultPackage.lll(1);
|
int r = TestPackage.lll(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1 +1,3 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
fun lll(a: Int) = a
|
fun lll(a: Int) = a
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
|
package test;
|
||||||
|
|
||||||
|
|
||||||
class IntArray {
|
class IntArray {
|
||||||
{
|
{
|
||||||
int[] r = _DefaultPackage.doNothing(new int[0], null);
|
int[] r = TestPackage.doNothing(new int[0], null);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,2 +1,4 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
// extra parameter is to make sure generic signature is not erased
|
// extra parameter is to make sure generic signature is not erased
|
||||||
fun doNothing(array: IntArray, ignore: java.util.List<String>) = array
|
fun doNothing(array: IntArray, ignore: java.util.List<String>) = array
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
|
package test;
|
||||||
|
|
||||||
|
|
||||||
class IntWithDefault {
|
class IntWithDefault {
|
||||||
{
|
{
|
||||||
int r = _DefaultPackage.www(1);
|
int r = TestPackage.www(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1 +1,3 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
fun www(p: Int = 1) = p
|
fun www(p: Int = 1) = p
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
|
package test;
|
||||||
|
|
||||||
|
|
||||||
class IntArray {
|
class IntArray {
|
||||||
{
|
{
|
||||||
Integer[] r = _DefaultPackage.doNothing(new Integer[0], null);
|
Integer[] r = TestPackage.doNothing(new Integer[0], null);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,2 +1,4 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
// extra parameter is to make sure generic signature is preserved
|
// extra parameter is to make sure generic signature is preserved
|
||||||
fun doNothing(array: Array<Int>, ignore: java.util.List<String>) = array
|
fun doNothing(array: Array<Int>, ignore: java.util.List<String>) = array
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
package test;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
|
||||||
@@ -5,7 +7,7 @@ class ListOfInt {
|
|||||||
|
|
||||||
public static void hhh() {
|
public static void hhh() {
|
||||||
List<Integer> list = new ArrayList<Integer>();
|
List<Integer> list = new ArrayList<Integer>();
|
||||||
List<Integer> r = _DefaultPackage.ggg(list);
|
List<Integer> r = TestPackage.ggg(list);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1 +1,3 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
fun ggg(list: List<Int>) = list
|
fun ggg(list: List<Int>) = list
|
||||||
|
|||||||
@@ -1,9 +1,11 @@
|
|||||||
|
package test;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
|
||||||
class ListString {
|
class ListString {
|
||||||
public static void gg() {
|
public static void gg() {
|
||||||
List<String> list = new ArrayList<String>();
|
List<String> list = new ArrayList<String>();
|
||||||
_DefaultPackage.ff(list);
|
TestPackage.ff(list);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1 +1,3 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
fun ff(p: List<String>) = 1
|
fun ff(p: List<String>) = 1
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
package test;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
|
||||||
@@ -5,7 +7,7 @@ class ListOfT {
|
|||||||
|
|
||||||
public static void check() {
|
public static void check() {
|
||||||
List<String> list = new ArrayList<String>();
|
List<String> list = new ArrayList<String>();
|
||||||
List<String> r = _DefaultPackage.listOfT(list);
|
List<String> r = TestPackage.listOfT(list);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1 +1,3 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
fun <P> listOfT(list: List<P>) = list
|
fun <P> listOfT(list: List<P>) = list
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
package test;
|
||||||
|
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
@@ -6,6 +8,6 @@ class MapOfKString {
|
|||||||
public static void gfgdgfg() {
|
public static void gfgdgfg() {
|
||||||
Map<BigDecimal, String> map = new HashMap<BigDecimal, String>();
|
Map<BigDecimal, String> map = new HashMap<BigDecimal, String>();
|
||||||
|
|
||||||
Map<BigDecimal, String> r = _DefaultPackage.fff(map);
|
Map<BigDecimal, String> r = TestPackage.fff(map);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,2 +1,4 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
|
|
||||||
fun <K> fff(map: Map<K, String>) = map
|
fun <K> fff(map: Map<K, String>) = map
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
package test;
|
||||||
|
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
@@ -6,6 +8,6 @@ class MapOfKString {
|
|||||||
public static void gfgdgfg() {
|
public static void gfgdgfg() {
|
||||||
Map<String, Integer> map = new HashMap<String, Integer>();
|
Map<String, Integer> map = new HashMap<String, Integer>();
|
||||||
|
|
||||||
Map<String, Integer> r = _DefaultPackage.fff(map);
|
Map<String, Integer> r = TestPackage.fff(map);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,2 +1,4 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
|
|
||||||
fun fff(map: Map<String, Int?>) = map
|
fun fff(map: Map<String, Int?>) = map
|
||||||
|
|||||||
@@ -1,7 +1,9 @@
|
|||||||
|
package test;
|
||||||
|
|
||||||
class Question {
|
class Question {
|
||||||
// id2 is to prevent java type parameter type inference
|
// id2 is to prevent java type parameter type inference
|
||||||
static <T> T id2(T p) { return p; }
|
static <T> T id2(T p) { return p; }
|
||||||
{
|
{
|
||||||
java.util.List<? extends String> s = id2(_DefaultPackage.id(null));
|
java.util.List<? extends String> s = id2(TestPackage.id(null));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1 +1,3 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
fun <P1 : List<String>> id(p: P1) = p
|
fun <P1 : List<String>> id(p: P1) = p
|
||||||
|
|||||||
@@ -1,7 +1,9 @@
|
|||||||
|
package test;
|
||||||
|
|
||||||
class Question {
|
class Question {
|
||||||
// id2 is to prevent java type parameter type inference
|
// id2 is to prevent java type parameter type inference
|
||||||
static <T> T id2(T p) { return p; }
|
static <T> T id2(T p) { return p; }
|
||||||
{
|
{
|
||||||
String s = id2(_DefaultPackage.id(null));
|
String s = id2(TestPackage.id(null));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1 +1,3 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
fun <T : String> id(p: T) = p
|
fun <T : String> id(p: T) = p
|
||||||
|
|||||||
@@ -1,9 +1,11 @@
|
|||||||
|
package test;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
|
||||||
class Vararg {
|
class Vararg {
|
||||||
{
|
{
|
||||||
List<String> list = new ArrayList<String>();
|
List<String> list = new ArrayList<String>();
|
||||||
List<String> r = _DefaultPackage.gg(list, 3, 4, 5, 6);
|
List<String> r = TestPackage.gg(list, 3, 4, 5, 6);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1 +1,3 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
fun gg(list: List<String>, vararg ints: Int) = list
|
fun gg(list: List<String>, vararg ints: Int) = list
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
|
package test;
|
||||||
|
|
||||||
class Void {
|
class Void {
|
||||||
{
|
{
|
||||||
_DefaultPackage.f();
|
TestPackage.f();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1 +1,3 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
fun f() { }
|
fun f() { }
|
||||||
|
|||||||
+2
@@ -1,3 +1,5 @@
|
|||||||
|
package test;
|
||||||
|
|
||||||
class ExtendsB extends B {
|
class ExtendsB extends B {
|
||||||
void test() {
|
void test() {
|
||||||
byte x = foo();
|
byte x = foo();
|
||||||
|
|||||||
+2
@@ -1,3 +1,5 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
trait A<T> {
|
trait A<T> {
|
||||||
fun foo(): T
|
fun foo(): T
|
||||||
}
|
}
|
||||||
|
|||||||
+2
@@ -1,3 +1,5 @@
|
|||||||
|
package test;
|
||||||
|
|
||||||
class Test {
|
class Test {
|
||||||
void test() {
|
void test() {
|
||||||
A<Integer> a = new B();
|
A<Integer> a = new B();
|
||||||
|
|||||||
+2
@@ -1,3 +1,5 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
trait A<T> {
|
trait A<T> {
|
||||||
fun foo(): T
|
fun foo(): T
|
||||||
}
|
}
|
||||||
|
|||||||
+2
@@ -1,3 +1,5 @@
|
|||||||
|
package test;
|
||||||
|
|
||||||
class Test {
|
class Test {
|
||||||
void test() {
|
void test() {
|
||||||
A<Integer> a = new B();
|
A<Integer> a = new B();
|
||||||
|
|||||||
+2
@@ -1,3 +1,5 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
trait A<T> {
|
trait A<T> {
|
||||||
fun foo(): T
|
fun foo(): T
|
||||||
}
|
}
|
||||||
|
|||||||
+2
@@ -1,3 +1,5 @@
|
|||||||
|
package test;
|
||||||
|
|
||||||
class Test extends B {
|
class Test extends B {
|
||||||
void test() {
|
void test() {
|
||||||
int x = foo();
|
int x = foo();
|
||||||
|
|||||||
+2
@@ -1,3 +1,5 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
trait A {
|
trait A {
|
||||||
fun foo(): Any
|
fun foo(): Any
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
package test;
|
||||||
|
|
||||||
class Test extends B {
|
class Test extends B {
|
||||||
void test() {
|
void test() {
|
||||||
A<Integer> a = new B();
|
A<Integer> a = new B();
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
trait A<T> {
|
trait A<T> {
|
||||||
fun foo(): T
|
fun foo(): T
|
||||||
}
|
}
|
||||||
|
|||||||
+2
@@ -1,3 +1,5 @@
|
|||||||
|
package test;
|
||||||
|
|
||||||
class ExtendsB extends B {
|
class ExtendsB extends B {
|
||||||
void test() {
|
void test() {
|
||||||
int x = foo();
|
int x = foo();
|
||||||
|
|||||||
+2
@@ -1,3 +1,5 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
trait A<T : Comparable<T>> {
|
trait A<T : Comparable<T>> {
|
||||||
fun foo(): T
|
fun foo(): T
|
||||||
}
|
}
|
||||||
|
|||||||
+2
@@ -1,3 +1,5 @@
|
|||||||
|
package test;
|
||||||
|
|
||||||
class ExtendsB extends B {
|
class ExtendsB extends B {
|
||||||
void test() {
|
void test() {
|
||||||
int x = foo();
|
int x = foo();
|
||||||
|
|||||||
+2
@@ -1,3 +1,5 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
trait A<T : Number> {
|
trait A<T : Number> {
|
||||||
fun foo(): T
|
fun foo(): T
|
||||||
}
|
}
|
||||||
|
|||||||
+2
@@ -1,3 +1,5 @@
|
|||||||
|
package test;
|
||||||
|
|
||||||
class ExtendsB extends B {
|
class ExtendsB extends B {
|
||||||
void test() {
|
void test() {
|
||||||
int x = foo();
|
int x = foo();
|
||||||
|
|||||||
+2
@@ -1,3 +1,5 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
trait A<T> {
|
trait A<T> {
|
||||||
fun foo(): T
|
fun foo(): T
|
||||||
}
|
}
|
||||||
|
|||||||
+2
@@ -1,3 +1,5 @@
|
|||||||
|
package test;
|
||||||
|
|
||||||
class ExtendsD extends D {
|
class ExtendsD extends D {
|
||||||
void test() {
|
void test() {
|
||||||
int x = foo();
|
int x = foo();
|
||||||
|
|||||||
+2
@@ -1,3 +1,5 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
trait A<T> {
|
trait A<T> {
|
||||||
fun foo(): T
|
fun foo(): T
|
||||||
}
|
}
|
||||||
|
|||||||
+2
@@ -1,3 +1,5 @@
|
|||||||
|
package test;
|
||||||
|
|
||||||
class ExtendsB extends B {
|
class ExtendsB extends B {
|
||||||
void test() {
|
void test() {
|
||||||
int x = foo();
|
int x = foo();
|
||||||
|
|||||||
+2
@@ -1,3 +1,5 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
trait A<T> {
|
trait A<T> {
|
||||||
fun foo(): T
|
fun foo(): T
|
||||||
}
|
}
|
||||||
|
|||||||
+2
@@ -1,3 +1,5 @@
|
|||||||
|
package test;
|
||||||
|
|
||||||
class ExtendsB extends B {
|
class ExtendsB extends B {
|
||||||
@Override
|
@Override
|
||||||
public Integer foo() {
|
public Integer foo() {
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
trait A<T> {
|
trait A<T> {
|
||||||
fun foo(): T
|
fun foo(): T
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
package test;
|
||||||
|
|
||||||
class JavaClass {
|
class JavaClass {
|
||||||
void testMethod() {
|
void testMethod() {
|
||||||
Test test = new Test();
|
Test test = new Test();
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
class E1: Exception()
|
class E1: Exception()
|
||||||
class E2: Exception()
|
class E2: Exception()
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
package test;
|
||||||
|
|
||||||
class JavaClass {
|
class JavaClass {
|
||||||
void testMethod() {
|
void testMethod() {
|
||||||
new None();
|
new None();
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
class E1: Exception()
|
class E1: Exception()
|
||||||
class E2: Exception()
|
class E2: Exception()
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
package test;
|
||||||
|
|
||||||
class JavaClass {
|
class JavaClass {
|
||||||
void testMethod(One instance) {
|
void testMethod(One instance) {
|
||||||
try {
|
try {
|
||||||
@@ -21,12 +23,12 @@ class JavaClass {
|
|||||||
catch (E1 e) {}
|
catch (E1 e) {}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
_DefaultPackage.one(1);
|
TestPackage.one(1);
|
||||||
}
|
}
|
||||||
catch (E1 e) {}
|
catch (E1 e) {}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
_DefaultPackage.one$default(1, 0);
|
TestPackage.one$default(1, 0);
|
||||||
}
|
}
|
||||||
catch (E1 e) {}
|
catch (E1 e) {}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
class E1: Exception()
|
class E1: Exception()
|
||||||
|
|
||||||
throws(javaClass<E1>())
|
throws(javaClass<E1>())
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
package test;
|
||||||
|
|
||||||
class JavaClass {
|
class JavaClass {
|
||||||
void testMethod() {
|
void testMethod() {
|
||||||
Test test = new Test();
|
Test test = new Test();
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
class E1: Exception()
|
class E1: Exception()
|
||||||
class E2: Exception()
|
class E2: Exception()
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
package test;
|
||||||
|
|
||||||
class JavaClass {
|
class JavaClass {
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
try {
|
try {
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
class E1: Exception()
|
class E1: Exception()
|
||||||
|
|
||||||
trait Base<T> {
|
trait Base<T> {
|
||||||
|
|||||||
@@ -1,14 +1,16 @@
|
|||||||
|
package test;
|
||||||
|
|
||||||
class JavaClass {
|
class JavaClass {
|
||||||
void testMethod() {
|
void testMethod() {
|
||||||
_DefaultPackage.none();
|
TestPackage.none();
|
||||||
|
|
||||||
try {
|
try {
|
||||||
_DefaultPackage.one();
|
TestPackage.one();
|
||||||
}
|
}
|
||||||
catch (E1 e) {}
|
catch (E1 e) {}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
_DefaultPackage.two();
|
TestPackage.two();
|
||||||
}
|
}
|
||||||
catch (E1 e) {}
|
catch (E1 e) {}
|
||||||
catch (E2 e) {}
|
catch (E2 e) {}
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
class E1: Exception()
|
class E1: Exception()
|
||||||
class E2: Exception()
|
class E2: Exception()
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
package test;
|
||||||
|
|
||||||
class JavaClass {
|
class JavaClass {
|
||||||
void testMethod() {
|
void testMethod() {
|
||||||
Test test = new Test();
|
Test test = new Test();
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
class E1: Exception()
|
class E1: Exception()
|
||||||
class E2: Exception()
|
class E2: Exception()
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
|
package test;
|
||||||
|
|
||||||
class GenericProperty {
|
class GenericProperty {
|
||||||
void foo() {
|
void foo() {
|
||||||
java.util.Map<?, ?> o = a.APackage.getTest();
|
java.util.Map<?, ?> o = TestPackage.getTest();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
// Tests that type variables of properties are written to the getter signature
|
package test
|
||||||
|
|
||||||
package a
|
// Tests that type variables of properties are written to the getter signature
|
||||||
|
|
||||||
val <K, V> test: Map<K, V>
|
val <K, V> test: Map<K, V>
|
||||||
get() = java.util.HashMap()
|
get() = java.util.HashMap()
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
package test;
|
||||||
|
|
||||||
@AString(value = Test.vstring)
|
@AString(value = Test.vstring)
|
||||||
@AChar(value = Test.vchar)
|
@AChar(value = Test.vchar)
|
||||||
@AInt(value = Test.vint)
|
@AInt(value = Test.vint)
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
annotation class AString(val value: String)
|
annotation class AString(val value: String)
|
||||||
annotation class AChar(val value: Char)
|
annotation class AChar(val value: Char)
|
||||||
annotation class AInt(val value: Int)
|
annotation class AInt(val value: Int)
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
package test;
|
||||||
|
|
||||||
@AString(value = Test.vstring)
|
@AString(value = Test.vstring)
|
||||||
@AChar(value = Test.vchar)
|
@AChar(value = Test.vchar)
|
||||||
@AInt(value = Test.vint)
|
@AInt(value = Test.vint)
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
annotation class AString(val value: String)
|
annotation class AString(val value: String)
|
||||||
annotation class AChar(val value: Char)
|
annotation class AChar(val value: Char)
|
||||||
annotation class AInt(val value: Int)
|
annotation class AInt(val value: Int)
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
package test;
|
||||||
|
|
||||||
public class kt3698 {
|
public class kt3698 {
|
||||||
|
|
||||||
@interface Foo {
|
@interface Foo {
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
class KotlinClass {
|
class KotlinClass {
|
||||||
class object {
|
class object {
|
||||||
val FOO: Int = 10
|
val FOO: Int = 10
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
package test;
|
||||||
|
|
||||||
class staticClassProperty {
|
class staticClassProperty {
|
||||||
|
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user