We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
append
1 parent d977e78 commit 7d3927bCopy full SHA for 7d3927b
compiler/src/dotty/tools/dotc/reporting/diagnostic/Message.scala
@@ -65,6 +65,12 @@ abstract class Message(val errorId: ErrorMessageID) { self =>
65
val kind = self.kind
66
val explanation = self.explanation
67
}
68
+
69
+ def append(suffix: => String): Message = new Message(errorId) {
70
+ val msg = self.msg ++ suffix
71
+ val kind = self.kind
72
+ val explanation = self.explanation
73
+ }
74
75
76
/** An extended message keeps the contained message from being evaluated, while
0 commit comments