Files
kotlin-fork/compiler/testData/diagnostics/tests/regressions/kt459.jet
T
2012-03-12 22:54:24 +04:00

9 lines
373 B
Plaintext

// KT-459 Type argument inference fails when class names are fully qualified
fun test() {
val attributes : java.util.HashMap<String, String> = java.util.HashMap() // failure!
attributes["href"] = "1" // inference fails, but it shouldn't
}
fun <K, V> java.util.Map<K, V>.set(<!UNUSED_PARAMETER!>key<!> : K, <!UNUSED_PARAMETER!>value<!> : V) {}//= this.put(key, value)