summaryrefslogtreecommitdiff
path: root/src/continuations
diff options
context:
space:
mode:
Diffstat (limited to 'src/continuations')
-rw-r--r--src/continuations/plugin/scala/tools/selectivecps/CPSAnnotationChecker.scala2
-rw-r--r--src/continuations/plugin/scala/tools/selectivecps/SelectiveANFTransform.scala2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/continuations/plugin/scala/tools/selectivecps/CPSAnnotationChecker.scala b/src/continuations/plugin/scala/tools/selectivecps/CPSAnnotationChecker.scala
index b9afcda3ec..e916f7c916 100644
--- a/src/continuations/plugin/scala/tools/selectivecps/CPSAnnotationChecker.scala
+++ b/src/continuations/plugin/scala/tools/selectivecps/CPSAnnotationChecker.scala
@@ -303,7 +303,7 @@ abstract class CPSAnnotationChecker extends CPSUtils {
for ((a,tp) <- args.zip(formals ::: List.fill(overshoot)(NoType))) yield {
tp match {
- case TypeRef(_, sym, List(elemtp)) if sym == ByNameParamClass =>
+ case TypeRef(_, ByNameParamClass, List(elemtp)) =>
Nil // TODO: check conformance??
case _ =>
List(a)
diff --git a/src/continuations/plugin/scala/tools/selectivecps/SelectiveANFTransform.scala b/src/continuations/plugin/scala/tools/selectivecps/SelectiveANFTransform.scala
index 936b572caf..3eb4b70ad1 100644
--- a/src/continuations/plugin/scala/tools/selectivecps/SelectiveANFTransform.scala
+++ b/src/continuations/plugin/scala/tools/selectivecps/SelectiveANFTransform.scala
@@ -147,7 +147,7 @@ abstract class SelectiveANFTransform extends PluginComponent with Transform with
val (stm,expr) = (for ((a,tp) <- args.zip(formals ::: List.fill(overshoot)(NoType))) yield {
tp match {
- case TypeRef(_, sym, List(elemtp)) if sym == ByNameParamClass =>
+ case TypeRef(_, ByNameParamClass, List(elemtp)) =>
(Nil, transExpr(a, None, getAnswerTypeAnn(elemtp)))
case _ =>
val (valStm, valExpr, valSpc) = transInlineValue(a, spc)