Skip to content

Commit 0c1797a

Browse files
committed
Merge pull request #468 from dotty-staging/add/no-double-bindings
Add/no double bindings
2 parents 6fc0a0f + d7f6e37 commit 0c1797a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/dotc/tests.scala

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,21 @@ class tests extends CompilerTest {
1414
"-pagewidth", "160")
1515

1616
implicit val defaultOptions = noCheckOptions ++ List(
17-
"-Yno-deep-subtypes",
17+
"-Yno-deep-subtypes", "-Yno-double-bindings",
1818
"-Ycheck:tailrec,resolveSuper,mixin,restoreScopes",
1919
"-d", "./out/"
2020
)
2121

2222
val doEmitBytecode = List("-Ystop-before:terminal")
2323
val failedbyName = List("-Ystop-before:collectEntryPoints") // #288
24-
val failedUnderscore = List("-Ystop-before:collectEntryPoints") // #289
2524
val testPickling = List("-Xprint-types", "-Ytest-pickler", "-Ystop-after:pickler")
2625

2726
val failedOther = List("-Ystop-before:collectEntryPoints") // some non-obvious reason. need to look deeper
28-
val twice = List("#runs", "2", "-Yno-double-bindings")
27+
val twice = List("#runs", "2")
2928
val staleSymbolError: List[String] = List()
3029

3130
val allowDeepSubtypes = defaultOptions diff List("-Yno-deep-subtypes")
31+
val allowDoubleBindings = defaultOptions diff List("-Yno-double-bindings")
3232

3333
val posDir = "./tests/pos/"
3434
val posSpecialDir = "./tests/pos-special/"
@@ -88,7 +88,7 @@ class tests extends CompilerTest {
8888
@Test def neg_typedapply() = compileFile(negDir, "typedapply", xerrors = 4)
8989
@Test def neg_typedidents() = compileFile(negDir, "typedIdents", xerrors = 2)
9090
@Test def neg_assignments() = compileFile(negDir, "assignments", xerrors = 3)
91-
@Test def neg_typers() = compileFile(negDir, "typers", xerrors = 12)
91+
@Test def neg_typers() = compileFile(negDir, "typers", xerrors = 12)(allowDoubleBindings)
9292
@Test def neg_privates() = compileFile(negDir, "privates", xerrors = 2)
9393
@Test def neg_rootImports = compileFile(negDir, "rootImplicits", xerrors = 2)
9494
@Test def neg_templateParents() = compileFile(negDir, "templateParents", xerrors = 3)

0 commit comments

Comments
 (0)