Skip to content

Commit 5d6fcee

Browse files
committed
refactor: don't forward -1 as the diagnosticCode
This change ensures that if the diagnostic code is set to -1 that we instead forward None as the code. This will hopefully help any tooling consuming this to not have to add checks for -1 and filter that code out, since it's a useless code.
1 parent 231f9ab commit 5d6fcee

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
package dotty.tools.dotc.reporting
2+
3+
import dotty.tools.dotc.util.SourcePosition
4+
5+
final case class DiagnosticRelatedInformation(msg: String, pos: SourcePosition)

0 commit comments

Comments
 (0)