4afe98a0f6
Skip declarations without sources in reporting, not when determining redeclaration groups: this allows emitting informative diagnostics for incremental compilation. Provide containing declaration with "kind", e.g., "package '<root>'", "class A", and so on.
31 lines
667 B
Plaintext
Vendored
31 lines
667 B
Plaintext
Vendored
// ERROR: 'public open fun foo(): kotlin.Unit' conflicts with another declaration in class 'C'
|
|
// ERROR: 'public open fun foo(): kotlin.Unit' conflicts with another declaration in class 'C'
|
|
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()
|
|
}
|
|
} |