diff options
author | Jason Zaugg <jzaugg@gmail.com> | 2014-05-09 16:50:08 +0200 |
---|---|---|
committer | Jason Zaugg <jzaugg@gmail.com> | 2014-05-09 16:50:08 +0200 |
commit | bdb1258d2ab8ff10d8e9f4924069a227ae82e690 (patch) | |
tree | c22b180d0fea992cd3af2d67b5d65f2328a9283b /test/files/run | |
parent | 6f33b2418a56ea7b945ec101c5fbe4b904d467df (diff) | |
download | scala-bdb1258d2ab8ff10d8e9f4924069a227ae82e690.tar.gz scala-bdb1258d2ab8ff10d8e9f4924069a227ae82e690.tar.bz2 scala-bdb1258d2ab8ff10d8e9f4924069a227ae82e690.zip |
Revert "SI-5905 Clarify test case"
This reverts commit 78bd175afcc89878ca1c00cce69d0517909c6ff3.
See discussion:
https://github.com/scala/scala/pull/3597#commitcomment-6270375
Diffstat (limited to 'test/files/run')
-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") } |