From 36ca453919ab3303d1e344aec2cb3f82c441af26 Mon Sep 17 00:00:00 2001 From: Tiark Rompf Date: Wed, 24 Mar 2010 22:43:44 +0000 Subject: reverting changes from r21260. --- .../plugin/scala/tools/selectivecps/CPSAnnotationChecker.scala | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/continuations') diff --git a/src/continuations/plugin/scala/tools/selectivecps/CPSAnnotationChecker.scala b/src/continuations/plugin/scala/tools/selectivecps/CPSAnnotationChecker.scala index a1112fa3c8..6acc685dc2 100644 --- a/src/continuations/plugin/scala/tools/selectivecps/CPSAnnotationChecker.scala +++ b/src/continuations/plugin/scala/tools/selectivecps/CPSAnnotationChecker.scala @@ -380,11 +380,7 @@ abstract class CPSAnnotationChecker extends CPSUtils { * for a tree. All this should do is add annotations. */ override def addAnnotations(tree: Tree, tpe: Type): Type = { - if (!cpsEnabled) { - if (tpe.hasAnnotation(MarkerCPSTypes)) - global.reporter.error(tree.pos, "this code must be compiled with the Scala continuations plugin enabled") - return tpe - } + if (!cpsEnabled) return tpe // if (tree.tpe.hasAnnotation(MarkerCPSAdaptPlus)) // println("addAnnotation " + tree + "/" + tpe) -- cgit v1.2.3