14 lines
299 B
Kotlin
Vendored
14 lines
299 B
Kotlin
Vendored
// FIR_IDENTICAL
|
|
// KT-287 Infer constructor type arguments
|
|
|
|
import java.util.*
|
|
|
|
fun attributes() : Map<String, String> = HashMap() // Should be inferred;
|
|
val attributes : Map<String, String> = HashMap() // Should be inferred;
|
|
|
|
fun foo(m : Map<String, String>) {}
|
|
|
|
fun test() {
|
|
foo(HashMap())
|
|
}
|