Files
kotlin-fork/j2k/testData/fileOrElement/class/kt-639.kt
T
2017-06-24 17:26:01 +03:00

21 lines
614 B
Kotlin
Vendored

// ERROR: Type inference failed: Not enough information to infer parameter K in constructor HashMap<K : Any!, V : Any!>(initialCapacity: Int) Please specify it explicitly.
// ERROR: Type inference failed: Not enough information to infer parameter K in constructor HashMap<K : Any!, V : Any!>(initialCapacity: Int) Please specify it explicitly.
package demo
import java.util.HashMap
internal class Test {
constructor() {}
constructor(s: String) {}
}
internal class User {
fun main() {
val m = HashMap(1)
val m2 = HashMap(10)
val t1 = Test()
val t2 = Test("")
}
}