File tree Expand file tree Collapse file tree 3 files changed +155
-21
lines changed
src/dotty/tools/dotc/reporting/diagnostic
test/dotty/tools/dotc/reporting Expand file tree Collapse file tree 3 files changed +155
-21
lines changed Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ abstract class Message(val errorId: ErrorMessageID) { self =>
8989 /** Links may list URLs to Internet resources related to the error
9090 * e.g. the Scala Language Specification.
9191 */
92- val links : List [DocumentationLink ] = Nil
92+ val links : List [DocumentationLink ]
9393
9494 /** The implicit `Context` in messages is a large thing that we don't want
9595 * persisted. This method gets around that by duplicating the message
@@ -119,6 +119,7 @@ class ExtendMessage(_msg: () => Message)(f: String => String) { self =>
119119 val msg = self.msg
120120 val kind = self.kind
121121 val explanation = self.explanation
122+ val links = Nil
122123 }
123124
124125 /** Enclose this message in an `Error` container */
@@ -154,6 +155,7 @@ class ExtendMessage(_msg: () => Message)(f: String => String) { self =>
154155class NoExplanation (val msg : String ) extends Message (ErrorMessageID .NoExplanationID ) {
155156 val explanation = " "
156157 val kind = " "
158+ val links = Nil
157159
158160 override def toString (): String = s " NoExplanation( $msg) "
159161}
You can’t perform that action at this time.
0 commit comments