// FIR_IDENTICAL // !DIAGNOSTICS: -UNUSED_PARAMETER -USELESS_CAST class Inv class Out fun foo(y: K?) = Inv>() fun test(x: Inv>) {} fun main() { test(foo(null)) // type mismatch test(foo(1 as Int)) // type mismatch }