From 8ab1f1b420d709080799c1dff2cc1f50baf1af31 Mon Sep 17 00:00:00 2001 From: Andrey Breslav Date: Wed, 9 Nov 2011 21:51:01 +0300 Subject: [PATCH] KT-287 Infer constructor type arguments More test data --- .../checkerWithErrorTypes/full/regression/kt287.jet | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/compiler/testData/checkerWithErrorTypes/full/regression/kt287.jet b/compiler/testData/checkerWithErrorTypes/full/regression/kt287.jet index e6f5ff1aeb0..b0efe2e6460 100644 --- a/compiler/testData/checkerWithErrorTypes/full/regression/kt287.jet +++ b/compiler/testData/checkerWithErrorTypes/full/regression/kt287.jet @@ -3,3 +3,9 @@ import java.util.* fun attributes() : Map = HashMap() // Should be inferred; val attributes : Map = HashMap() // Should be inferred; + +fun foo(m : Map) {} + +fun test() { + foo(HashMap()) +}