Skip to content

Instantly share code, notes, and snippets.

@sanity
Created August 23, 2009 19:04
Show Gist options
  • Select an option

  • Save sanity/173402 to your computer and use it in GitHub Desktop.

Select an option

Save sanity/173402 to your computer and use it in GitHub Desktop.
code:
def root2() : Cont = reset {
val num = List(1,2,3,4,5);
for (n <- num) {
println("get "+n+" "+get("remote"));
}
}
error:
cannot cps-transform expression { val num: List[Int] =
immutable.this.List.apply[Int](1, 2, 3, 4, 5);
num.foreach[Unit](((n: Int) => scala.this.Predef.println("get
".+(n).+(" ").+(ContTest.this.get("remote"))))) }: type arguments
[Unit,Unit,Nothing] do not conform to method shiftUnit's type
parameter bounds [A,B,C >: B] ContTest.scala /SwarmProto/src line
23 Scala Problem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment