// !CHECK_TYPE interface B interface G: B fun f(p: B<Foo>): Any { val v = p as G return checkSubtype>(v) }