New J2K: fix testData
This commit is contained in:
+6
-9
@@ -1,17 +1,14 @@
|
||||
// ERROR: Type inference failed: Not enough information to infer parameter K in constructor HashMap<K : Any!, V : Any!>() Please specify it explicitly.
|
||||
// ERROR: Type inference failed: Not enough information to infer parameter K in constructor HashMap<K : Any!, V : Any!>() Please specify it explicitly.
|
||||
import java.util.HashMap
|
||||
|
||||
internal class G<T : String>(t: T)
|
||||
|
||||
// ERROR: The integer literal does not conform to the expected type CapturedType(*)
|
||||
// ERROR: The integer literal does not conform to the expected type CapturedType(*)
|
||||
internal class G<T : String?>(t: T?)
|
||||
class Java {
|
||||
internal fun test() {
|
||||
val m = HashMap()
|
||||
m.put(1, 1)
|
||||
val m: HashMap<*, *> = HashMap<Any?, Any?>()
|
||||
m[1] = 1
|
||||
}
|
||||
|
||||
internal fun test2() {
|
||||
val m = HashMap()
|
||||
val m: HashMap<*, *> = HashMap<Any?, Any?>()
|
||||
val g = G("")
|
||||
val g2 = G("")
|
||||
}
|
||||
|
||||
+1
-4
@@ -1,7 +1,4 @@
|
||||
internal class Test {
|
||||
val int: Int
|
||||
get() {
|
||||
val b: Byte = 10
|
||||
return b.toInt()
|
||||
}
|
||||
get() = 10
|
||||
}
|
||||
Reference in New Issue
Block a user