scala3
scala3 copied to clipboard
The Scala 3 compiler, also known as Dotty.
Fixes #13774
We now keep track of reverse type variable dependencies in constraints. E.g. if a constraint contains a clause like A >: List[B] We associate with `B` info that `A` depends...
Basically if the transformation doesn't apply to the dealias type, then return the original type instead of the dealiased one. In general it's reduce dealiasing to a minimum when typing,...
## Compiler version 3.0.2 ## Minimized code ```Scala (transparent) inline def f(x: Int) = inline x match case 1 => 1 case _ => 0 @main def m = val...
via `-Vrepl-max-print-elements`. The default behaviour is unchanged: ``` scala> 1.to(300).toList val res0: List[Int] = List(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16,...
## Compiler version 3.2.0 ## Minimized code There is a regression from Scala 2 to Scala 3 in that forward reference warnings are not given. ```Scala object shouldwarn { val...
## Compiler version 3.2.0 ## Minimized code Not that minimized sadly, but I have very little idea what's going on. I'd give an implementation for HKDProductGeneric instead of just ???,...
## Compiler version scalaVersion = 3.2.1-RC1 / 3.2.0 ## Minimized code & Output ```Scala def foo(x: Int)(y: String): Int = x val voo: (Int, String) => Int = foo //...