// FIR_IDENTICAL // !DIAGNOSTICS: -UNUSED_PARAMETER // !CHECK_TYPE // KT-3372 Use upper bound in type argument inference import java.util.HashSet fun > Iterable.toCollection(result: C) : C = throw Exception() fun test(list: List) { val set = list.toCollection(HashSet()) set checkType { _>() } }