// !CHECK_TYPE //KT-948 Make type inference work with sure()/!! package a import java.util.* import checkSubtype fun emptyList() : List? = ArrayList() fun foo() { // type arguments shouldn't be required val l : List = emptyList()!! val l1 = emptyList()!! checkSubtype>(emptyList()!!) checkSubtype?>(emptyList()) doWithList(emptyList()!!) } fun doWithList(list: List) = list