summaryrefslogtreecommitdiff
path: root/test/files/run/t5905-features.scala
diff options
context:
space:
mode:
authorSom Snytt <som.snytt@gmail.com>2014-03-01 09:26:50 -0800
committerSom Snytt <som.snytt@gmail.com>2014-03-02 16:22:27 -0800
commit534cadc762a5dc3a5d211ad3733df91c7b1bd931 (patch)
tree4c7d5d57b316806a76b5f6964a8c16f3e694ca35 /test/files/run/t5905-features.scala
parenta40af3e42fdfff62901dbc807ed3d899272d2b37 (diff)
downloadscala-534cadc762a5dc3a5d211ad3733df91c7b1bd931.tar.gz
scala-534cadc762a5dc3a5d211ad3733df91c7b1bd931.tar.bz2
scala-534cadc762a5dc3a5d211ad3733df91c7b1bd931.zip
SI-5905 Restore -language:_
Underscore means all. -x:c,b,a,_ results in value c,b,a,a,b,c,d,... Currently, -Xprint does not present phases as a closed set of choices; there is ad hoc checking in Global. That would be a nice unification. (You don't know the list of choices until after global is constructed.)
Diffstat (limited to 'test/files/run/t5905-features.scala')
-rw-r--r--test/files/run/t5905-features.scala3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/files/run/t5905-features.scala b/test/files/run/t5905-features.scala
index fbffddf114..a3848eef2a 100644
--- a/test/files/run/t5905-features.scala
+++ b/test/files/run/t5905-features.scala
@@ -12,7 +12,8 @@ object Test extends DirectTest {
compileString(global)(code)
import global._
exitingTyper {
- def isFeature(s: Symbol) = s.annotations.exists((a: AnnotationInfo) => a.tpe <:< typeOf[scala.annotation.meta.languageFeature])
+ //def isFeature(s: Symbol) = s.annotations.exists((a: AnnotationInfo) => a.tpe <:< typeOf[scala.annotation.meta.languageFeature])
+ def isFeature(s: Symbol) = s hasAnnotation definitions.LanguageFeatureAnnot
val langf = definitions.languageFeatureModule.typeSignature
val feats = langf.declarations filter (s => isFeature(s)) map (_.name.decoded)
val xmen = langf.member(TermName("experimental")).typeSignature.declarations filter (s => isFeature(s)) map (s => s"experimental.${s.name.decoded}")