Skip to content

Instantly share code, notes, and snippets.

@bbjubjub2494
Created May 26, 2020 15:13
Show Gist options
  • Save bbjubjub2494/75bbb25c96e7a1181573f748161e04f4 to your computer and use it in GitHub Desktop.
Save bbjubjub2494/75bbb25c96e7a1181573f748161e04f4 to your computer and use it in GitHub Desktop.
showcase dotty crash
val dottyVersion = "0.24.0-RC1"
scalaVersion := dottyVersion
scalacOptions ++= Seq(
"-deprecation",
"-feature",
"-Xfatal-warnings",
"-encoding", "utf8",
"-Yexplicit-nulls",
)
object impl:
case object UNone
import impl._
opaque type UOption[+A] = A | UNone.type
val UNone: UOption[Nothing] = ???
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment