Better diagnostics for conflicting overloads.
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.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
// ERROR: 'public open fun foo(): kotlin.Unit' conflicts with another declaration: public open fun foo(): kotlin.Unit
|
||||
// ERROR: 'public open fun foo(): kotlin.Unit' conflicts with another declaration: public open fun foo(): kotlin.Unit
|
||||
// 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(){}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user