scala3
scala3 copied to clipboard
The Scala 3 compiler, also known as Dotty.
Fixes #23361 If an arg to a interpolator is a conditional or match, the expression type may be an `OrType`, so check both parts for non-Strings for which `toString` is...
fixes #23158 The fix is made based on us doing stripNamedTuple in other parts close by. Seems like made should in a single place, but I lack the bigger understanding...
Fixes #23201 Previously, CheckUnused transformed the `call` tree of an `Inlined` node only after typer (and not after inlining), but inlining also results in non-trivial `call` trees. Needs a minimized...
## Compiler version 3.7.2-RC1-bin-20250520-baac46c-NIGHTLY-git-baac46c ## Minimized example ```Scala class Test: def f1: (Int, Int) = (1, 2) def test1 = val (a, b) = f1 a + b ``` ##...
## Compiler version 3.1.0 ## Minimized code ```Scala package io.gitlab.mypackage.components object Tools: /**I've documented this tool */ def sharedTool = println("hello world") def nonSharedTool = println("i don't get shared") ```...
Original issue description in IntelliJ Scala Plugin YouTrack: https://youtrack.jetbrains.com/issue/SCL-20896/Source-code-parameters-for-Scala-libraries ----- Short summary: **The issue:** IDEs can’t reliably interpret Scala source files in libraries due to missing project-specific compiler configurations (like...
## Compiler version 3.7.0 ## Minimized example ```Scala import scala.scalajs.js abstract class A: type Props def apply(p: Props) = () type UndefOr2[A] = A | Unit object D extends A:...
## Compiler version 3.7.1 ## Minimized code ```scala object USED { case class A(value: Int) } object UNUSED { // In reality UNUSED would contain several other necessary members! private...
## Compiler version 3.7.1 ## Minimized code ```scala //> using scala 3.7.1 object CompilerBug { trait Signal[T] { class Projection[U] extends Signal[U] } case class Bounds(x: Double, y: Double, width:...