KT-3344 InternalError in compiler when type arguments are not specified

#KT-3344 fixed
This commit is contained in:
Svetlana Isakova
2013-02-20 13:21:29 +04:00
parent 6739f7ca24
commit 8ef067be77
6 changed files with 71 additions and 55 deletions
@@ -0,0 +1,16 @@
//KT-3344 InternalError in compiler when type arguments are not specified
package i
import java.util.HashMap
import java.util.ArrayList
class Foo(val attributes: Map<String, String>)
class Bar {
val foos = ArrayList<Foo>()
fun bar11(foo: Foo) {
foos.add(Foo(HashMap(foo.attributes))) // foo.attributes is unresolved but not marked
}
}