scala3
scala3 copied to clipboard
The Scala 3 compiler, also known as Dotty.
close #19266 Before this PR, `checkStatementPurity` filtered out impure expression too eagerly and `closureDef` ignores closure definition generated from eta-expansion on method with default arguments, which prevented impure lambda at...
## Compiler version 3.4.0-RC2 ## Minimized code ```scala import compiletime.summonAll import deriving.Mirror type Sc[X] = X case class Row[T[_]](name: T[String]) class DialectTypeMappers: given String = ??? inline def metadata(dialect: DialectTypeMappers)(using...
## Compiler version 3.4.0-RC2 ## Minimized code ```scala object repro: abstract class Mapper[A, B] extends (A => B) given Mapper[Int, Double] with // inlining causes a compiler crash inline def...
## Compiler version 3.3.1 In pekko /Akka project ## Minimized code Sbt docs +3.3.1 TestOnly ※ActorDocSpec※ I edited this on phone , sorry ```Scala "Xxxxx test " in { new...
Backport of #19644
When trying to export M2.F, seeing M1#F from the prefix M2 doesn't change the bounds of F's T type parameter, which still refers to M1.this.A, rather than M2.A. So, we...
## Compiler version I've compared a simple peace of code performance running with Scala 2 and Scala 3 and faced with performance regression. In this case Scala 2 generated program...
Dotty is still on 3.19.0, from way back in 2021. (Scala 2.13.13 is on 3.24.1, and we'll very likely move to 3.25.1 in 2.13.14.) Why is the upgrade desirable? No...
fix https://github.com/lampepfl/dotty/issues/18681 This commit fixes the reporting issue where un-reduced summonFrom does not fallback to implicitNotFound. Before this commit, `reduceInlineMatch` discarded the information from implicit search in InlineReducer. See https://github.com/lampepfl/dotty/pull/19490/files#diff-b34b7edb06dcd7e56dac607175a9519e98d79473371201ad3c750613db3a8579R207-R213...