Skip to content

Commit af6941f

Browse files
committed
Merge pull request #3732 from retronym/revert/5905
Revert "SI-5905 Clarify test case"
2 parents 6f33b24 + bdb1258 commit af6941f

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
-nowarn

test/files/run/t5905-features.scala

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ import tools.partest.DirectTest
33

44
// verify that all languageFeature names are accepted by -language
55
object Test extends DirectTest {
6-
override def code = "class Code { def f = (1 to 10) size }" // exercise a feature to sanity-check coverage of -language options
6+
override def code = "class Code { def f = (1 to 10) size }" // exercise a feature
77

88
override def extraSettings = s"-usejavacp -d ${testOutput.path}"
99

1010
override def show() = {
11-
val global = newCompiler("-Ystop-after:typer")
12-
compileString(global)("") // warm me up, scotty
11+
val global = newCompiler("-language:postfixOps", "-Ystop-after:typer")
12+
compileString(global)(code)
1313
import global._
1414
exitingTyper {
1515
//def isFeature(s: Symbol) = s.annotations.exists((a: AnnotationInfo) => a.tpe <:< typeOf[scala.annotation.meta.languageFeature])
@@ -21,8 +21,6 @@ object Test extends DirectTest {
2121

2222
assert(feats.nonEmpty, "Test must find feature flags.")
2323

24-
//compile("junk") // tragically, does not fail the test
25-
2624
//dynamics,postfixOps,reflectiveCalls,implicitConversions,higherKinds,existentials,experimental.macros
2725
compile(s"-language:$all")
2826
}

0 commit comments

Comments
 (0)