Skip to main content

Scala 3.10.0

Release Date: October 12, 2026

Scala 3.10.0 was published on October 12, 2026. It carries eight breaking changes, three SIPs that move between preview and stable, and a compiler backend that no longer ships the project's own fork of ASM.

Breaking Changes

The release notes open with a list that every library maintainer should read before bumping scalaVersion. The compiler is stricter about several things that previously compiled with a warning or silently.

  • Implicit search narrowed — implicits are no longer inferred from a companion object that is not accessible at the use site (#25367). Code that relied on package-private companions leaking into implicit resolution will stop compiling.
  • No top-level this — the compiler now rejects this inside top-level definitions (#26448), where it never had a sensible referent.
  • with as a type operator is an error — the long-deprecated spelling for compound types (#26545) fails outright instead of warning.
  • -> is an inline method — the arrow used in tuple construction is now defined as an inline method rather than an implicit conversion (#24728), which changes what inlining and macro expansion see at call sites.
  • Primitive conversions are extension methods — runtime.RichInt, RichLong and their siblings are replaced by direct extension methods (#23872), removing a layer of boxing around arithmetic on primitives.
  • Stock ASM for bytecode — class file generation uses upstream ASM instead of the project's scala-asm fork (#26772, #25989). Anything that inspects compiler output should treat this as a backend change.
  • Fuel instead of StackOverflowError — the compiler no longer catches StackOverflowError to recover from runaway implicit search, and relies on a fuel budget instead (#25937). Pathological code now produces a regular error.
  • Stronger constant folding — inlining folds more constant expressions (#25731), so later phases see different trees than in 3.9.x.

Language and Tooling Additions

\s is now a valid space escape in string literals (#26515). Java records participate in pattern matching (#26497), closing a gap that forced a manual deconstruction for Java interop types. The REPL accepts //> using dep directives together with trailing code (#26507), so a pasted snippet can declare its own dependencies. The distribution also gains .deb and .rpm packaging (#26858).

The bundled Scala CLI moves from 1.16.0 to 1.17.1 (#27055, #27107). That bump brings JEP 512 flexible main methods on JDK 25 and above (JDK 21 with --enable-preview), individual files exposed as resources through --resource and //> using resource, //> using exclude accepted in .sc scripts, -d paths ending in .jar producing a library JAR the way scalac does, and a redefinition of the lts tag: it resolves to the 3.9 LTS series now, while 3.3.lts pins 3.3.

SIPs: One Stable, Three Preview

SIP 71 is enabled by default (#26424): strictEqualityPatternMatching now applies without a flag, and -language feature flags gained deprecation mechanics. Three proposals enter preview: SIP 61 unrolls default arguments for binary compatibility (#24903), SIP 75 relaxes lambda syntax (#26728), and SIP 68 makes package objects referenceable (#24586). Experimental work continues on inline and specialized traits (#26156) and on spec strings for modular agentic interface code (#26486).

Upgrade with scala-cli --scala 3.10.0, or set scalaVersion := "3.10.0" in the build. Teams that cannot absorb the breaking list this quarter should stay on the LTS line, where 3.3.9 shipped on October 28, 2026.

Other Versions

We use cookies for ads and analytics.