New J2K: fix testData

This commit is contained in:
Ilya Kirillov
2019-05-29 14:22:26 +03:00
parent 3a98b49556
commit ab26061b5e
39 changed files with 229 additions and 235 deletions
+6 -9
View File
@@ -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
View File
@@ -1,7 +1,4 @@
internal class Test {
val int: Int
get() {
val b: Byte = 10
return b.toInt()
}
get() = 10
}