// FIR_IDENTICAL // !CHECK_TYPE interface A { fun foo(): CharSequence? fun baz(x: Any) {} } interface B { fun foo(): String fun baz(x: Int): String ="" fun baz(x: Int, y: Int) {} fun foobar(): CharSequence? } interface C { fun foo(): String fun baz(x: Int): String ="" fun baz(x: Int, y: Int) {} fun foobar(): String } var x: A = null!! fun test() { x.foo().checkType { _() } if (x is B && x is C) { x.foo().checkType { _() } x.baz("") x.baz(1).checkType { _() } x.baz(1, 2) x.foobar().checkType { _() } } }