diagnostic tests changes after collections mapping
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
import java.util.concurrent.ConcurrentLinkedQueue
|
||||
import java.util.List
|
||||
|
||||
public object RefreshQueue {
|
||||
private val queue = ConcurrentLinkedQueue<List<String>>
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
package pack
|
||||
|
||||
import java.util.Collection
|
||||
import java.util.ArrayList
|
||||
import java.util.regex.Pattern
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
//KT-1800 error/NonExistentClass generated on runtime
|
||||
package i
|
||||
|
||||
import java.util.Collection
|
||||
import java.util.ArrayList
|
||||
|
||||
public class User(val firstName: String,
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import java.util.Collection
|
||||
|
||||
class JsonObject() {
|
||||
}
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import java.util.Collection
|
||||
import java.util.ArrayList
|
||||
|
||||
class JsonObject {
|
||||
|
||||
@@ -1,12 +1,11 @@
|
||||
import java.util.HashMap
|
||||
import java.util.Map
|
||||
import java.io.*
|
||||
|
||||
fun <K, V> Map<K, V>.set(key : K, value : V) = put(key, value)
|
||||
fun <K, V> MutableMap<K, V>.set(key : K, value : V) = put(key, value)
|
||||
|
||||
fun box() : String {
|
||||
|
||||
val commands : Map<String, String> = HashMap()
|
||||
val commands : MutableMap<String, String> = HashMap()
|
||||
|
||||
commands["c1"] = "239"
|
||||
if(commands["c1"] != "239") return "fail"
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
import java.util.ArrayList
|
||||
import java.util.List
|
||||
|
||||
fun Int.plus(a: Int?) = this + a.sure()
|
||||
|
||||
public open class PerfectNumberFinder() {
|
||||
open public fun isPerfect(number : Int) : Boolean {
|
||||
var factors : List<Int?> = ArrayList<Int?>()
|
||||
var factors : MutableList<Int?> = ArrayList<Int?>()
|
||||
factors?.add(1)
|
||||
factors?.add(number)
|
||||
for (i in 2..(Math.sqrt((number).toDouble()) - 1).toInt())
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import java.util.Set
|
||||
import java.util.HashSet
|
||||
|
||||
fun foo() : Int =
|
||||
@@ -9,7 +8,7 @@ fun foo() : Int =
|
||||
"s"
|
||||
}
|
||||
|
||||
fun bar(set : Set<Int>) : Set<Int> =
|
||||
fun bar(set : MutableSet<Int>) : Set<Int> =
|
||||
try {
|
||||
set
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user