Permalink
Browse files

Switch to Scala 2.10.2 and workaround compiler crash

  • Loading branch information...
1 parent 89ffd70 commit bdc369cf25d3f3497ca2fd61d5a17704fef075ed @Blaisorblade Blaisorblade committed Aug 25, 2013
Showing with 4 additions and 2 deletions.
  1. +1 −1 build.sbt
  2. +3 −1 src/main/scala/ivm/expressiontree/traversableOps.scala
View
2 build.sbt
@@ -10,7 +10,7 @@ version := "0.3-SNAPSHOT"
//scalaVersion in ThisBuild := "2.9.2"
-scalaVersion in ThisBuild := "2.10.1"
+scalaVersion in ThisBuild := "2.10.2"
//resolvers in ThisBuild += Resolver.sonatypeRepo("snapshots")
View
4 src/main/scala/ivm/expressiontree/traversableOps.scala
@@ -334,7 +334,9 @@ trait ForceOps {
//of T will be picked usually), therefore this implicit will be picked when needed. Note that since Forceable is invariant,
//implicit resolution will not have other alternatives
implicit def TraversableViewForceable[T]: Forceable[T, TraversableView[T, Traversable[_]]] = new Forceable[T, TraversableView[T, Traversable[_]]] {
- def force(t: Exp[TraversableView[T, Traversable[_]]]) = t.force
+ def force(t: Exp[TraversableView[T, Traversable[_]]]) =
+ expToTravViewExp2(t).force
+ //t.force //Fails compilation on 2.10.2. The same error appears on tests.
def force(t: TraversableView[T, Traversable[_]]) = t.force
}

0 comments on commit bdc369c

Please sign in to comment.