We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 41630f9 commit 8aae9c1Copy full SHA for 8aae9c1
compiler/test/dotty/tools/dotc/reporting/ErrorMessagesTests.scala
@@ -1294,4 +1294,16 @@ class ErrorMessagesTests extends ErrorMessagesTest {
1294
val JavaSymbolIsNotAValue(symbol) = messages.head
1295
assertEquals(symbol.show, "package p")
1296
}
1297
+
1298
+ @Test def i3187 =
1299
+ checkMessagesAfter("genBCode") {
1300
+ """
1301
+ |package scala
1302
+ |object collection
1303
+ """.stripMargin
1304
+ }.expect { (itcx, messages) =>
1305
+ implicit val ctx: Context = itcx
1306
1307
+ assert(ctx.reporter.hasErrors)
1308
+ }
1309
tests/neg/i3187.scala
0 commit comments