Skip to content

Commit e6d9e9f

Browse files
authored
Merge pull request #12 from sjrd/upgrades
Upgrades.
2 parents 6f4fae4 + f0c2fbc commit e6d9e9f

File tree

6 files changed

+12
-11
lines changed

6 files changed

+12
-11
lines changed

.travis.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,21 @@ language: scala
33
scala:
44
- 2.10.7
55
- 2.11.12
6-
- 2.12.6
7-
- 2.13.0-M4
6+
- 2.12.8
7+
- 2.13.0
88
jdk:
99
- oraclejdk8
1010
env:
1111
matrix:
1212
- SCALAJS_VERSION=
13-
- SCALAJS_VERSION=0.6.23
14-
- SCALAJS_VERSION=1.0.0-M5
13+
- SCALAJS_VERSION=0.6.28
14+
- SCALAJS_VERSION=1.0.0-M8
1515

1616
matrix:
1717
exclude:
1818
# 2.10 is not supported in Scala.js 1.x
1919
- scala: 2.10.7
20-
env: SCALAJS_VERSION=1.0.0-M5
20+
env: SCALAJS_VERSION=1.0.0-M8
2121

2222
script:
2323
- |

build.sbt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import sbtcrossproject.{crossProject, CrossType}
44
val previousVersion = "0.1.0"
55

66
inThisBuild(Def.settings(
7-
crossScalaVersions := Seq("2.10.7", "2.11.12", "2.12.6"),
8-
scalaVersion := crossScalaVersions.value.last,
7+
crossScalaVersions := Seq("2.12.8", "2.10.7", "2.11.12", "2.13.0"),
8+
scalaVersion := crossScalaVersions.value.head,
99
version := "0.1.1-SNAPSHOT",
1010
organization := "org.portable-scala",
1111

jvm/src/main/scala/org/portablescala/reflect/Reflect.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ object Reflect {
206206
if (clazz.getAnnotation(classOf[EnableReflectiveInstantiation]) != null) {
207207
true
208208
} else {
209-
(Iterator(clazz.getSuperclass) ++ Iterator(clazz.getInterfaces: _*))
209+
(Iterator(clazz.getSuperclass) ++ clazz.getInterfaces.iterator)
210210
.filter(_ != null)
211211
.exists(c)
212212
}

project/build.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
sbt.version=1.2.1
1+
sbt.version=1.2.8

project/plugins.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
val scalaJSVersion =
2-
Option(System.getenv("SCALAJS_VERSION")).filter(_ != "").getOrElse("0.6.23")
2+
Option(System.getenv("SCALAJS_VERSION")).filter(_ != "").getOrElse("0.6.28")
33

44
addSbtPlugin("org.scala-js" % "sbt-scalajs" % scalaJSVersion)
55
addSbtPlugin("org.portable-scala" % "sbt-scalajs-crossproject" % "0.6.0")

shared/src/test/scala/org/portablescala/reflect/ReflectTest.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,10 +319,11 @@ class ReflectTest {
319319

320320
@Test def testLocalClassWithReflectiveInstantiationInLambda_issue_3227(): Unit = {
321321
// Test that the presence of the following code does not prevent linking
322-
{ () =>
322+
val f = { () =>
323323
@EnableReflectiveInstantiation
324324
class Foo
325325
}
326+
identity(f) // discard f without compiler warning
326327
}
327328
}
328329

0 commit comments

Comments
 (0)