// FIR_IDENTICAL // !CHECK_TYPE // FILE: Test.java public class Test { public T with(Foo matcher) { return null; } public boolean with(Foo matcher) { return false; } } // FILE: main.kt class Foo fun main(foo1: Foo, foo2: Foo) { val x = object : Test() {} // FE exception is thrown here x.with(foo1) checkType { _() } x.with(foo2) checkType { _() } }