scala3
scala3 copied to clipboard
The Scala 3 compiler, also known as Dotty.
## Compiler version 3.2.0 and 3.2.1-RC1 (version used for stacktrace below) ## Minimized code Unfortunately I've not been able to make a minimal test case. ## Output (click arrow to...
## Compiler version 3.2.0 ## Minimized code fun.sc: ```scala @main def fun(i: Int): Unit = { println("foo") } ``` ```bash scala fun.sc echo $? ``` ## Output ``` Illegal command...
## Compiler version 3.2.0 ## Minimized code ```Scala enum A { case AA case AB } enum B { case BA case BB case BC } type P[X B.BA.type |...
## Compiler version 3.2.1-RC1-bin-20220904-b5fea82-NIGHTLY ## Minimized code While investigating , I noticed `*:`-tuples in unapply return raise refutable pattern warnings. ```Scala class Foo object Foo: // def unapply(f: Foo): (Int,...
## Minimized code ```Scala @deprecated("no CaseClass", "0.1") case class CaseClass(rgb: Int) ``` ## Output ```scala -- Deprecation Warning: CaseClass.scala:1:0 ---- 21 |@deprecated("no CaseClass", "0.1") case class CaseClass(rgb: Int) |^ |class...
## Compiler version 3.2.1 RC-1 ## Minimized example In Tuple.scala: ```Scala inline def map[F[_]](f: [t] => t => F[t]): Map[this.type, F] = runtime.Tuples.map(this, f).asInstanceOf[Map[this.type, F]] ``` ## Output Scaladoc output:...
## Compiler version `3.1.3`, `3.2.2-RC1-bin-20220908-c11f5cb-NIGHTLY` ## Minimized code Main.scala ```Scala //> using scala "3.nightly" import s.util.tag // letters t and higher work sealed trait ScalaInput object InputUnmarshaller { def emptyMapVars...
Regression reproduced based on [Open CB #4757](https://scala3.westeurope.cloudapp.azure.com/job/buildCommunityProject/4757/) found in [vitaliihonta/scala-ql](https://github.com/vitaliihonta/scala-ql) (maintainer @vitaliihonta ) In the original build all files defined in submodules or tests placed in the same package (scalaql)...
## Compiler version 3.2.0, regression ## Description Because `TupleMirror` uses `runtime.Tuples.fromProduct`, Scala.JS brings `Tuple1` ... `Tupe21` into the source code, and that ends up consuming around 50KB of minified (fullOpt)...