New J2K: Split old j2k and new j2k tests
This commit is contained in:
committed by
Ilya Kirillov
parent
02a206bf7c
commit
b411e8e18e
@@ -1,9 +1,2 @@
|
||||
//class
|
||||
class Foo {
|
||||
Foo(int a, int b) {
|
||||
}
|
||||
|
||||
void foo() {
|
||||
Foo f = new Foo(1, 2);
|
||||
}
|
||||
}
|
||||
//expression
|
||||
new Foo(param);
|
||||
@@ -1,6 +1 @@
|
||||
internal class Foo(a: Int, b: Int) {
|
||||
|
||||
fun foo() {
|
||||
val f = Foo(1, 2)
|
||||
}
|
||||
}
|
||||
Foo(param)
|
||||
@@ -1,9 +1,2 @@
|
||||
//class
|
||||
class Foo {
|
||||
Foo(int a, int b) {
|
||||
}
|
||||
|
||||
void foo() {
|
||||
Foo f = new Foo(1, 2);
|
||||
}
|
||||
}
|
||||
//expression
|
||||
new Foo(param1, param2);
|
||||
@@ -1,6 +1 @@
|
||||
internal class Foo(a: Int, b: Int) {
|
||||
|
||||
fun foo() {
|
||||
val f = Foo(1, 2)
|
||||
}
|
||||
}
|
||||
Foo(param1, param2)
|
||||
@@ -1,7 +1,2 @@
|
||||
//class
|
||||
class Foo {}
|
||||
class Bar {
|
||||
void bar() {
|
||||
new Foo()
|
||||
}
|
||||
}
|
||||
//expression
|
||||
new Foo();
|
||||
@@ -1,6 +1 @@
|
||||
internal class Foo
|
||||
internal class Bar {
|
||||
fun bar() {
|
||||
Foo()
|
||||
}
|
||||
}
|
||||
Foo()
|
||||
@@ -1,7 +0,0 @@
|
||||
package test
|
||||
|
||||
internal class User {
|
||||
fun main() {
|
||||
val list: List<*> = ArrayList<Any?>()
|
||||
}
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
// ERROR: One type argument expected for interface List<out E>
|
||||
package test
|
||||
|
||||
internal class User {
|
||||
fun main() {
|
||||
val list: List<*> = ArrayList<Any?>()
|
||||
}
|
||||
}
|
||||
@@ -1,5 +0,0 @@
|
||||
internal class User {
|
||||
fun main() {
|
||||
val list: List<String> = ArrayList()
|
||||
}
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
internal class C {
|
||||
fun foo() {
|
||||
val o1: Any = object : Any() {
|
||||
|
||||
}
|
||||
val o2 = Any()
|
||||
}
|
||||
}
|
||||
@@ -1,11 +0,0 @@
|
||||
internal abstract class A
|
||||
|
||||
internal class C {
|
||||
fun foo() {
|
||||
val a: A = object : A() {
|
||||
override fun toString(): String {
|
||||
return "a"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,19 +0,0 @@
|
||||
import kotlinApi.KotlinTrait
|
||||
|
||||
internal class C {
|
||||
fun foo() {
|
||||
val t: KotlinTrait = object : KotlinTrait {
|
||||
override fun nullableFun(): String? {
|
||||
return null
|
||||
}
|
||||
|
||||
override fun notNullableFun(): String {
|
||||
return ""
|
||||
}
|
||||
|
||||
override fun nonAbstractFun(): Int {
|
||||
return 0
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,12 +0,0 @@
|
||||
package org.test
|
||||
|
||||
import java.util.ArrayList
|
||||
|
||||
internal class Member
|
||||
|
||||
internal class User {
|
||||
fun main() {
|
||||
val members: MutableList<Member> = ArrayList()
|
||||
members.add(Member())
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user