Skip to content

Commit

Permalink
Switch to Scala 2.10.2 and workaround compiler crash
Browse files Browse the repository at this point in the history
  • Loading branch information
Blaisorblade committed Aug 25, 2013
1 parent 89ffd70 commit bdc369c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.sbt
Expand Up @@ -10,7 +10,7 @@ version := "0.3-SNAPSHOT"


//scalaVersion in ThisBuild := "2.9.2" //scalaVersion in ThisBuild := "2.9.2"


scalaVersion in ThisBuild := "2.10.1" scalaVersion in ThisBuild := "2.10.2"


//resolvers in ThisBuild += Resolver.sonatypeRepo("snapshots") //resolvers in ThisBuild += Resolver.sonatypeRepo("snapshots")


Expand Down
4 changes: 3 additions & 1 deletion src/main/scala/ivm/expressiontree/traversableOps.scala
Expand Up @@ -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, //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 resolution will not have other alternatives
implicit def TraversableViewForceable[T]: Forceable[T, TraversableView[T, Traversable[_]]] = new Forceable[T, TraversableView[T, Traversable[_]]] { 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 def force(t: TraversableView[T, Traversable[_]]) = t.force
} }


Expand Down

0 comments on commit bdc369c

Please sign in to comment.