diff options
-rw-r--r-- | test/files/run/t5905-features.flags | 1 | ||||
-rw-r--r-- | test/files/run/t5905-features.scala | 8 |
2 files changed, 4 insertions, 5 deletions
diff --git a/test/files/run/t5905-features.flags b/test/files/run/t5905-features.flags new file mode 100644 index 0000000000..ad51758c39 --- /dev/null +++ b/test/files/run/t5905-features.flags @@ -0,0 +1 @@ +-nowarn diff --git a/test/files/run/t5905-features.scala b/test/files/run/t5905-features.scala index 547a521cb5..a3848eef2a 100644 --- a/test/files/run/t5905-features.scala +++ b/test/files/run/t5905-features.scala @@ -3,13 +3,13 @@ import tools.partest.DirectTest // verify that all languageFeature names are accepted by -language object Test extends DirectTest { - override def code = "class Code { def f = (1 to 10) size }" // exercise a feature to sanity-check coverage of -language options + override def code = "class Code { def f = (1 to 10) size }" // exercise a feature override def extraSettings = s"-usejavacp -d ${testOutput.path}" override def show() = { - val global = newCompiler("-Ystop-after:typer") - compileString(global)("") // warm me up, scotty + val global = newCompiler("-language:postfixOps", "-Ystop-after:typer") + compileString(global)(code) import global._ exitingTyper { //def isFeature(s: Symbol) = s.annotations.exists((a: AnnotationInfo) => a.tpe <:< typeOf[scala.annotation.meta.languageFeature]) @@ -21,8 +21,6 @@ object Test extends DirectTest { assert(feats.nonEmpty, "Test must find feature flags.") - //compile("junk") // tragically, does not fail the test - //dynamics,postfixOps,reflectiveCalls,implicitConversions,higherKinds,existentials,experimental.macros compile(s"-language:$all") } |