Skip to content

Commit 8015b0a

Browse files
committed
Fix calls to contained()
Contained is a pure function, so the () was removed.
1 parent 3a50be9 commit 8015b0a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

doc-tool/test/dotty/tools/dottydoc/DottyDocTest.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ trait DottyDocTest extends MessageRendering {
5454
System.err.println("reporter had errors:")
5555
ctx.reporter.removeBufferedMessages.foreach { msg =>
5656
System.err.println {
57-
messageAndPos(msg.contained(), msg.pos, diagnosticLevel(msg))
57+
messageAndPos(msg.contained, msg.pos, diagnosticLevel(msg))
5858
}
5959
}
6060
}

language-server/src/dotty/tools/languageserver/DottyLanguageServer.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -709,7 +709,7 @@ object DottyLanguageServer {
709709
}
710710
}
711711

712-
val message = mc.contained()
712+
val message = mc.contained
713713
if (displayMessage(message, mc.pos.source)) {
714714
val code = message.errorId.errorNumber.toString
715715
range(mc.pos).map(r =>

0 commit comments

Comments
 (0)