// FIR_IDENTICAL // !DIAGNOSTICS: -UNUSED_PARAMETER interface Bar { val t: T } class MyBar(override val t: T) : Bar class BarR : Bar { override val t: BarR get() = this } class Foo>(val f: F) fun id(t1: T, t2: T) = t2 fun test(foo: Foo<*>, g: Bar<*>) { id(foo.f, g).t.t } fun main() { val foo = Foo(BarR()) test(foo, MyBar(2)) }