Skip to content

Commit af00d13

Browse files
committed
Fix scala#725: Enable -Ycheck:all
1 parent 0ab5a2c commit af00d13

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

compiler/src/dotty/tools/dotc/typer/Checking.scala

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -612,8 +612,6 @@ trait Checking {
612612
case tp: ConstantType if exprPurity(tree) >= purityLevel => // ok
613613
case tp if defn.isFunctionType(tp) && exprPurity(tree) >= purityLevel => // ok
614614
case _ =>
615-
println("exprP: " + exprPurity(tree))
616-
println("purityLevel: " + purityLevel)
617615
if (!ctx.erasedTypes) ctx.error(em"$what must be a constant expression or a function", tree.pos)
618616
}
619617
}

compiler/test/dotty/tools/vulpix/TestConfiguration.scala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,7 @@ object TestConfiguration {
4444
} mkString(":")
4545
}
4646

47-
// Ideally should be Ycheck:all
48-
val yCheckOptions = Array("-Ycheck:elimJavaPackages,refchecks,splitter,arrayConstructors,erasure,capturedVars,getClass,elimStaticThis,labelDef")
47+
val yCheckOptions = Array("-Ycheck:all")
4948

5049
val basicDefaultOptions = checkOptions ++ noCheckOptions ++ yCheckOptions
5150
val defaultUnoptimised = TestFlags(classPath, runClassPath, basicDefaultOptions)

0 commit comments

Comments
 (0)