Created
August 23, 2009 19:04
-
-
Save sanity/173402 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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