New J2K: Fix existing test data
This commit is contained in:
committed by
Ilya Kirillov
parent
5236858c20
commit
f752796408
@@ -1,2 +1,9 @@
|
||||
//expression
|
||||
new Foo(param);
|
||||
//class
|
||||
class Foo {
|
||||
Foo(int a, int b) {
|
||||
}
|
||||
|
||||
void foo() {
|
||||
Foo f = new Foo(1, 2);
|
||||
}
|
||||
}
|
||||
@@ -1 +1,6 @@
|
||||
Foo(param)
|
||||
internal class Foo(a: Int, b: Int) {
|
||||
|
||||
fun foo() {
|
||||
val f = Foo(1, 2)
|
||||
}
|
||||
}
|
||||
@@ -1,2 +1,9 @@
|
||||
//expression
|
||||
new Foo(param1, param2);
|
||||
//class
|
||||
class Foo {
|
||||
Foo(int a, int b) {
|
||||
}
|
||||
|
||||
void foo() {
|
||||
Foo f = new Foo(1, 2);
|
||||
}
|
||||
}
|
||||
@@ -1 +1,6 @@
|
||||
Foo(param1, param2)
|
||||
internal class Foo(a: Int, b: Int) {
|
||||
|
||||
fun foo() {
|
||||
val f = Foo(1, 2)
|
||||
}
|
||||
}
|
||||
@@ -1,2 +1,7 @@
|
||||
//expression
|
||||
new Foo();
|
||||
//class
|
||||
class Foo {}
|
||||
class Bar {
|
||||
void bar() {
|
||||
new Foo()
|
||||
}
|
||||
}
|
||||
@@ -1 +1,6 @@
|
||||
Foo()
|
||||
internal class Foo
|
||||
internal class Bar {
|
||||
fun bar() {
|
||||
Foo()
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package test
|
||||
|
||||
internal class User {
|
||||
fun main() {
|
||||
val list: List<*> = ArrayList<Any?>()
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
// ERROR: One type argument expected for interface List<out E>
|
||||
package test
|
||||
|
||||
internal class User {
|
||||
fun main() {
|
||||
val list: List<*> = ArrayList<Any?>()
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
internal class User {
|
||||
fun main() {
|
||||
val list: List<String?> = ArrayList()
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
internal class C {
|
||||
fun foo() {
|
||||
val o1: Any = object : Any() {
|
||||
|
||||
}
|
||||
val o2 = Any()
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
internal abstract class A
|
||||
|
||||
internal class C {
|
||||
fun foo() {
|
||||
val a: A = object : A() {
|
||||
override fun toString(): String {
|
||||
return "a"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
package org.test
|
||||
|
||||
internal class Member
|
||||
|
||||
internal class User {
|
||||
fun main() {
|
||||
val members: MutableList<Member?> = ArrayList()
|
||||
members.add(Member())
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user