diff options
author | Jason Zaugg <jzaugg@gmail.com> | 2014-06-10 17:15:20 +0200 |
---|---|---|
committer | Jason Zaugg <jzaugg@gmail.com> | 2014-06-10 17:15:20 +0200 |
commit | fdc3812b0f61942f7682db0ba2dcfcf5658a0894 (patch) | |
tree | 4b5f75534811cfe26bf88f6a3caed8afbad4f043 /test/files | |
parent | ddb29a8105bc3b692bc129cbd8ed111baae7076d (diff) | |
parent | 85af6f0f7dc74e67149e8d8fc392c3cc97134cca (diff) | |
download | scala-fdc3812b0f61942f7682db0ba2dcfcf5658a0894.tar.gz scala-fdc3812b0f61942f7682db0ba2dcfcf5658a0894.tar.bz2 scala-fdc3812b0f61942f7682db0ba2dcfcf5658a0894.zip |
Merge pull request #3777 from som-snytt/issue/5905-test
SI-5905 Clarify test case
Diffstat (limited to 'test/files')
-rw-r--r-- | test/files/run/t5905-features.scala | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/test/files/run/t5905-features.scala b/test/files/run/t5905-features.scala index a3848eef2a..b518d61145 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 + override def code = "class Code { def f = (1 to 10) size }" // exercise a feature to sanity-check coverage of -language options override def extraSettings = s"-usejavacp -d ${testOutput.path}" override def show() = { - val global = newCompiler("-language:postfixOps", "-Ystop-after:typer") - compileString(global)(code) + val global = newCompiler("-Ystop-after:typer") + compileString(global)("") // warm me up, scotty import global._ exitingTyper { //def isFeature(s: Symbol) = s.annotations.exists((a: AnnotationInfo) => a.tpe <:< typeOf[scala.annotation.meta.languageFeature]) @@ -21,6 +21,8 @@ object Test extends DirectTest { assert(feats.nonEmpty, "Test must find feature flags.") + //compile("junk") // tragically, does not fail the test, i.e., arg must not be totally borked + //dynamics,postfixOps,reflectiveCalls,implicitConversions,higherKinds,existentials,experimental.macros compile(s"-language:$all") } |