From 534cadc762a5dc3a5d211ad3733df91c7b1bd931 Mon Sep 17 00:00:00 2001 From: Som Snytt Date: Sat, 1 Mar 2014 09:26:50 -0800 Subject: 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.) --- test/files/run/t5905-features.scala | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test') 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}") -- cgit v1.2.3