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
-1
@@ -5,7 +5,7 @@ Compiling files:
|
||||
src/A.kt
|
||||
End of files
|
||||
COMPILATION FAILED
|
||||
'public constructor A(x: kotlin.String)' conflicts with another declaration: public constructor A(x: kotlin.String)
|
||||
'public constructor A(x: kotlin.String)' conflicts with another declaration in package '<root>'
|
||||
|
||||
|
||||
Cleaning output files:
|
||||
|
||||
Reference in New Issue
Block a user