Do not reference java.util in tests that run on JS backend.
This commit is contained in:
@@ -2,8 +2,6 @@
|
||||
|
||||
package test.regressions.kt1149
|
||||
|
||||
import java.util.ArrayList
|
||||
|
||||
public interface SomeTrait {
|
||||
fun foo()
|
||||
}
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
import java.util.*
|
||||
|
||||
fun <T> ArrayList<T>.findAll(predicate: (T) -> Boolean): ArrayList<T> {
|
||||
val result = ArrayList<T>()
|
||||
for(t in this) {
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
//KT-1800 error/NonExistentClass generated on runtime
|
||||
package i
|
||||
|
||||
import java.util.ArrayList
|
||||
|
||||
public class User(val firstName: String,
|
||||
val lastName: String,
|
||||
val age: Int) {
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
package foo
|
||||
|
||||
import java.util.*;
|
||||
|
||||
fun box() : String {
|
||||
val a = ArrayList<Int>();
|
||||
a.add(1)
|
||||
|
||||
Reference in New Issue
Block a user