Skip to content

Commit 89e251d

Browse files
committed
Added and corrected tests
to reflect last commit.
1 parent 0337195 commit 89e251d

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

test/dotc/tests.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ class tests extends CompilerTest {
6868
@Test def neg_typedapply() = compileFile(negDir, "typedapply", xerrors = 4)
6969
@Test def neg_typedidents() = compileFile(negDir, "typedIdents", xerrors = 2)
7070
@Test def neg_assignments() = compileFile(negDir, "assignments", xerrors = 3)
71-
@Test def neg_typers() = compileFile(negDir, "typers", xerrors = 13)
71+
@Test def neg_typers() = compileFile(negDir, "typers", xerrors = 12)
7272
@Test def neg_privates() = compileFile(negDir, "privates", xerrors = 2)
7373
@Test def neg_rootImports = compileFile(negDir, "rootImplicits", xerrors = 2)
7474
@Test def neg_templateParents() = compileFile(negDir, "templateParents", xerrors = 3)
@@ -105,7 +105,7 @@ class tests extends CompilerTest {
105105
@Test def neg_typetest = compileFile(negDir, "typetest", xerrors = 1)
106106
@Test def neg_t1569_failedAvoid = compileFile(negDir, "t1569-failedAvoid", xerrors = 1)
107107
@Test def neg_cycles = compileFile(negDir, "cycles", xerrors = 6)
108-
@Test def neg_boundspropagation = compileFile(negDir, "boundspropagation", xerrors = 3)
108+
@Test def neg_boundspropagation = compileFile(negDir, "boundspropagation", xerrors = 4)
109109

110110
@Test def dotc = compileDir(dotcDir + "tools/dotc", twice)(allowDeepSubtypes)
111111
@Test def dotc_ast = compileDir(dotcDir + "tools/dotc/ast", twice)

tests/neg/boundspropagation.scala

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,7 @@ object test4 {
3838
}
3939
}
4040
}
41+
42+
class Test5 {
43+
"": ({ type U = this.type })#U
44+
}

tests/neg/typers.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,6 @@ object typers {
6262
}
6363

6464
class Refinements {
65-
val y: C { val x: T; type T } // error: illegal forward reference in refinement
65+
val y: C { val x: T; type T } // deprecated warning: illegal forward reference in refinement
6666
}
6767
}

0 commit comments

Comments
 (0)