KT-287 Infer constructor type arguments

More test data
This commit is contained in:
Andrey Breslav
2011-11-09 21:51:01 +03:00
parent 0c492ae0eb
commit 8ab1f1b420
@@ -3,3 +3,9 @@ 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())
}