scala3
scala3 copied to clipboard
The Scala 3 compiler, also known as Dotty.
## Minimized example ```Scala class B(val y: Int): println(y) // A warning is due here foo() def foo() = println(y) class C(override val y: Int) extends B(10) @main def Test...
## Compiler version `3.2.1-RC1-bin-20220803-da2d44a-NIGHTLY` ## Minimized code ```Scala //> using scala "3.2.1-RC1-bin-20220803-da2d44a-NIGHTLY" @main def main = foo.bar(42) package object foo { def bar[F[_]]: Unit = ??? def bar[F[_]](x: Int): Unit...
Big thanks to all people involved in this initiative. Especially, I would like to thank @fanixus96 for implementing majority of these changes
## Compiler version 3.1.2 (but valid for all Scala 3 versions) ## Minimized code ```Scala object main { def main(args: Array[String]): Unit = { Array(1).foreach { n => val x...
## Compiler version 3.1.3 ## Minimized code ```Scala sealed trait IntT sealed trait NatT extends IntT final case class Zero() extends NatT final case class Succ[+N
## Compiler version 3.0.0-RC3 ## Minimized code The problem disappears if I move the sealed trait definition outside of the def. It also disappears if I have a given for...
With explicit nulls, one source of unsoundness is array creation using `new Array` - the array is filled with nulls even if the element type is not nullable. This has...
Fixes summonInline behavior in #15788 The fix is perhaps of a "hacky" kind. But it fixes the original issue described in #15788 and does not break any existing test. Perhaps...
## Compiler version 3.1.3 ## Minimized code ```Scala Welcome to Scala 3.1.3 (18.0.1.1, Java OpenJDK 64-Bit Server VM). Type in expressions for evaluation. Or try :help. scala> List(42) match {...