Skip to content

Commit 16246c0

Browse files
committed
boom
1 parent f2fa684 commit 16246c0

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

build.sbt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// shadow sbt-scalajs' crossProject and CrossType from Scala.js 0.6.x
22
import sbtcrossproject.CrossPlugin.autoImport.{crossProject, CrossType}
33

4-
crossScalaVersions in ThisBuild := Seq("2.12.8", "2.11.12")
4+
crossScalaVersions in ThisBuild := Seq("0.17.0-RC1", "2.12.8", "2.11.12")
55
scalaVersion in ThisBuild := crossScalaVersions.value.head
66

77
lazy val `scala-unboxed-option` = crossProject(JSPlatform, JVMPlatform).
@@ -18,6 +18,6 @@ lazy val `scala-unboxed-option` = crossProject(JSPlatform, JVMPlatform).
1818
"-encoding", "utf8"
1919
),
2020

21-
libraryDependencies += "org.scalatest" %%% "scalatest" % "3.0.1" % "test",
21+
libraryDependencies += "com.eed3si9n.verify" %%% "verify" % "0.1.0" % Test,
2222
scalacOptions in Test -= "-Xfatal-warnings"
2323
)

project/plugins.sbt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "0.6.27")
22
addSbtPlugin("org.portable-scala" % "sbt-scalajs-crossproject" % "0.6.0")
3+
addSbtPlugin("ch.epfl.lamp" % "sbt-dotty" % "0.3.4")

src/main/scala/uoption/package.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ package object uoption {
3434
object USome {
3535
@inline // only for Scala.js?
3636
def apply[A](value: A): USome[A] = value match {
37-
case value @ UNone => value.wrap.asInstanceOf[USome[A]]
37+
case value @ UNone => (value.asInstanceOf[UNone.type]).wrap.asInstanceOf[USome[A]]
3838
case value: WrappedNone => value.wrap.asInstanceOf[USome[A]]
3939
case _ => value.asInstanceOf[USome[A]]
4040
}

src/test/scala/uoption/test/UOptionTest.scala

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ package uoption.test
33
// this import is the price to pay to use UOptions
44
import uoption._
55

6-
import org.scalatest._
6+
import verify._
77

8-
class UOptionTest extends FunSuite {
8+
class UOptionTest extends BasicTestSuite {
99
test("caveats ==") {
10-
assert(USome(5) == 5)
11-
assert(USome(USome(4)) == 4)
10+
assert(USome(5) equals 5)
11+
assert(USome(USome(4)) equals 4)
1212
}
1313

1414
test("caveats isInstanceOf") {

0 commit comments

Comments
 (0)