// RUN_PIPELINE_TILL: FRONTEND
// JDK_KIND: MODIFIED_MOCK_JDK

fun foo(jalw: java.util.ListWithSomethingOverridden<String>, jal: java.util.ArrayList<String>, l: List<String>) {
    // java.util.ListWithSomethingOverridden contains getSomethingNonExisting() explicit override
    jalw.<!DEPRECATION!>somethingNonExisting<!>
    jalw.<!DEPRECATION!>getSomethingNonExisting<!>()
    // java.util.ArrayList does not contain explicit override
    jal.<!DEPRECATION!>somethingNonExisting<!>
    jal.<!DEPRECATION!>getSomethingNonExisting<!>()
    // Modified java.util.List contains additional getSomethingNonExisting(): String declaration
    l.<!DEPRECATION!>somethingNonExisting<!>
    l.<!DEPRECATION!>getSomethingNonExisting<!>()
}

/* GENERATED_FIR_TAGS: flexibleType, functionDeclaration, javaProperty */
