Skip to content

Commit

Permalink
Merge pull request #131 from SethTisue/bump-scala-versions
Browse files Browse the repository at this point in the history
be 2.12.0-RC2 compatible
  • Loading branch information
SethTisue authored Oct 19, 2016
2 parents c5f1ded + bda0165 commit dc9f1cc
Show file tree
Hide file tree
Showing 11 changed files with 21 additions and 16 deletions.
2 changes: 2 additions & 0 deletions .sbtopts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
-J-XX:ReservedCodeCacheSize=256M
-J-Xmx3072M
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ env:
- TEST_COMMAND="test"
- TEST_COMMAND="scripted"
- TEST_COMMAND="testFunctional"
- TEST_COMMAND="-Dmima.testScalaVersion=2.11.7 testFunctional"
- TEST_COMMAND="-Dmima.testScalaVersion=2.12.0-RC1 testFunctional"
- TEST_COMMAND="-Dmima.testScalaVersion=2.11.8 testFunctional"
- TEST_COMMAND="-Dmima.testScalaVersion=2.12.0-RC2 testFunctional"

script:
- sbt -J-XX:ReservedCodeCacheSize=256M -J-Xmx3072M $TEST_COMMAND
- sbt $TEST_COMMAND

# Tricks to avoid unnecessary cache updates
- find $HOME/.sbt -name "*.lock" | xargs rm
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
abstract class A {
def foo: Unit
}
def foo(): Unit
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
abstract class A {
def foo: Unit
def foo(): Unit
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class A
abstract class B {
def foo: Unit
}
def foo(): Unit
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
class A
trait B {
def foo: Unit
def bar: Unit = ()
}
def foo(): Unit
def bar(): Unit = ()
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
abstract class A {
def foo: Unit
}
def foo(): Unit
}

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
trait A {
def foo: Unit
}
def foo(): Unit
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import scala.language.higherKinds

trait Foldable[F[_]]{
def foldLeft[A, B](fa: F[A], z: B)(f: (B, A) => B): B
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import scala.language.higherKinds

trait FoldableToList[F[_]] { self: Foldable[F] =>
def toList[A](fa: F[A]): List[A] =
self.foldLeft(fa, List.empty[A])((xs, x) => x :: xs).reverse
Expand Down

0 comments on commit dc9f1cc

Please sign in to comment.