Skip to content

Commit acfe55c

Browse files
committed
Make i3187 a fuzzy test
It doesn't output an error anymore for some reason, but that's fine: we only care about it not crashing the compiler, which is what fuzzy tests check.
1 parent 4fd550f commit acfe55c

File tree

2 files changed

+2
-12
lines changed

2 files changed

+2
-12
lines changed

compiler/test/dotty/tools/dotc/reporting/ErrorMessagesTests.scala

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1475,18 +1475,6 @@ class ErrorMessagesTests extends ErrorMessagesTest {
14751475
assertEquals("class Object", parentSym.show)
14761476
}
14771477

1478-
@Test def i3187 =
1479-
checkMessagesAfter(GenBCode.name) {
1480-
"""
1481-
|package scala
1482-
|object collection
1483-
""".stripMargin
1484-
}.expect { (itcx, messages) =>
1485-
implicit val ctx: Context = itcx
1486-
1487-
assert(ctx.reporter.hasErrors)
1488-
}
1489-
14901478
@Test def typeDoubleDeclaration =
14911479
checkMessagesAfter(FrontEnd.name) {
14921480
"""

tests/fuzzy/i3187.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
package scala
2+
object collection

0 commit comments

Comments
 (0)