Skip to content

Commit e636669

Browse files
committed
Add Scala 2.13.0-M4 to the CI, under Scala.js 0.6.x.
We switch from `Stream.iterate` to `Iterator.iterate` because the former is deprecated in 2.13.0-M4.
1 parent 364b40f commit e636669

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

.travis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ scala:
1111
- 2.11.12
1212
- 2.12.5
1313
- 2.13.0-M3
14+
- 2.13.0-M4
1415
jdk:
1516
- oraclejdk8
1617
env:
@@ -20,6 +21,8 @@ matrix:
2021
exclude:
2122
- scala: 2.10.7
2223
env: SCALAJS_VERSION=1.0.0-M3
24+
- scala: 2.13.0-M4
25+
env: SCALAJS_VERSION=1.0.0-M3
2326

2427
cache:
2528
directories:

build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import sbtcrossproject.crossProject
22

3-
crossScalaVersions in ThisBuild := Seq("2.12.5", "2.11.12", "2.10.7", "2.13.0-M3")
3+
crossScalaVersions in ThisBuild := Seq("2.12.5", "2.11.12", "2.10.7", "2.13.0-M3", "2.13.0-M4")
44
scalaVersion in ThisBuild := (crossScalaVersions in ThisBuild).value.head
55

66
val commonSettings: Seq[Setting[_]] = Seq(

src/main/scala/java/time/LocalDate.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ object LocalDate {
379379

380380
private final val iso = IsoChronology.INSTANCE
381381

382-
private val daysBeforeYears = Stream.iterate(1970 -> 0) { case (year, day) =>
382+
private val daysBeforeYears = Iterator.iterate(1970 -> 0) { case (year, day) =>
383383
if (iso.isLeapYear(year)) (year + 1) -> (day + 366)
384384
else (year + 1) -> (day + 365)
385385
}.take(400).toVector

0 commit comments

Comments
 (0)