Files
kotlin-fork/compiler/testData/diagnostics/tests/inference/regressions/kt3344.kt
T
2013-02-25 18:19:52 +04:00

17 lines
360 B
Kotlin

//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
}
}