// !WITH_NEW_INFERENCE // FILE: P.java import java.util.ArrayList; import java.util.List; public class P { public List getList() { return new ArrayList(); } } // FILE: Test.kt fun foo(c: P): MutableList { // Error should be here: see KT-8168 Typechecker fails for platform collection type return c.getList() ?: listOf() }