From bdb1258d2ab8ff10d8e9f4924069a227ae82e690 Mon Sep 17 00:00:00 2001 From: Jason Zaugg Date: Fri, 9 May 2014 16:50:08 +0200 Subject: Revert "SI-5905 Clarify test case" This reverts commit 78bd175afcc89878ca1c00cce69d0517909c6ff3. See discussion: https://github.com/scala/scala/pull/3597#commitcomment-6270375 --- test/files/run/t5905-features.flags | 1 + test/files/run/t5905-features.scala | 8 +++----- 2 files changed, 4 insertions(+), 5 deletions(-) create mode 100644 test/files/run/t5905-features.flags (limited to 'test/files/run') 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") } -- cgit v1.2.3