summaryrefslogtreecommitdiff
path: root/test/files/run/t5905-features.scala
diff options
context:
space:
mode:
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}")