// FIR_IDENTICAL // !CHECK_TYPE package g import java.util.HashSet import checkType import _ fun > convert(src: Collection, dest: C): C = throw Exception("$src $dest") fun test(l: List) { //todo should be inferred val r = convert(l, HashSet()) r checkType { _>() } }