summaryrefslogtreecommitdiff
path: root/plugins/kotlin/idea/tests/testData/codeInsight/overrideImplement/ambiguousSuper.kt.fir.after
blob: d1c660e5cf1b8d55268051271b5848f2dce7c08f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// ERROR: [CONFLICTING_OVERLOADS] Conflicting overloads: [/C.foo]
// ERROR: [CONFLICTING_OVERLOADS] Conflicting overloads: [/C.foo]
interface I {
    open fun foo(){}
}

open class A {
    open fun foo(){}
}

class C : A(), I {
    override fun equals(other: Any?): Boolean {
        <selection><caret>return super.equals(other)</selection>
    }

    override fun foo() {
        super<A>.foo()
    }

    override fun foo() {
        super<I>.foo()
    }

    override fun hashCode(): Int {
        return super.hashCode()
    }

    override fun toString(): String {
        return super.toString()
    }
}