summaryrefslogtreecommitdiff
path: root/test/files/run
diff options
context:
space:
mode:
authorJason Zaugg <jzaugg@gmail.com>2014-05-09 16:50:08 +0200
committerJason Zaugg <jzaugg@gmail.com>2014-05-09 16:50:08 +0200
commitbdb1258d2ab8ff10d8e9f4924069a227ae82e690 (patch)
treec22b180d0fea992cd3af2d67b5d65f2328a9283b /test/files/run
parent6f33b2418a56ea7b945ec101c5fbe4b904d467df (diff)
downloadscala-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.flags1
-rw-r--r--test/files/run/t5905-features.scala8
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")
}