Skip to content

Commit b444167

Browse files
committed
Merge pull request #233 from dotty-staging/cleanup/tests
Moved pending tests that work into pos and neg.
2 parents 2cc2c86 + e63feff commit b444167

File tree

11 files changed

+3
-35
lines changed

11 files changed

+3
-35
lines changed

src/dotty/tools/dotc/core/Types.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ object Types {
397397
*/
398398
final def findMember(name: Name, pre: Type, excluded: FlagSet)(implicit ctx: Context): Denotation = try {
399399
recCount += 1
400-
assert(recCount < 20)
400+
assert(recCount < 40)
401401
@tailrec def go(tp: Type): Denotation = tp match {
402402
case tp: RefinedType =>
403403
if (name eq tp.refinedName) goRefined(tp) else go(tp.parent)

test/dotc/tests.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ class tests extends CompilerTest {
2323
val allowDeepSubtypes = defaultOptions diff List("-Yno-deep-subtypes")
2424

2525
val posDir = "./tests/pos/"
26+
val posSpecialDir = "./tests/pos-special/"
2627
val negDir = "./tests/neg/"
2728
val newDir = "./tests/new/"
2829
val dotcDir = "./src/dotty/"
@@ -57,6 +58,7 @@ class tests extends CompilerTest {
5758
@Test def pos_tailcall = compileDir(posDir + "tailcall/", doErase)
5859
@Test def pos_nullarify = compileFile(posDir, "nullarify", "-Ycheck:nullarify" :: doErase)
5960
@Test def pos_subtyping = compileFile(posDir, "subtyping", doErase)
61+
@Test def pos_t2613 = compileFile(posSpecialDir, "t2613", doErase)(allowDeepSubtypes)
6062

6163
@Test def pos_all = compileFiles(posDir, twice)
6264
@Test def new_all = compileFiles(newDir, twice)

tests/pending/pos/subtyping.scala

Lines changed: 0 additions & 12 deletions
This file was deleted.

tests/pending/pos/tailcall/t1672.scala

Lines changed: 0 additions & 10 deletions
This file was deleted.

tests/pending/pos/vararg-pattern.scala

Lines changed: 0 additions & 12 deletions
This file was deleted.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)