# State of the TASTy reader and Scala 2.13 ↔ Scala 3 compatibility

DevFeed: [State of the TASTy reader and Scala 2.13 ↔ Scala 3 compatibility](<https://devfeed.tech/articles/state-of-the-tasty-reader-and-scala-2-13-scala-3-compatibility-43570.md>)

Original publisher: [Read original article](<https://www.scala-lang.org/blog/state-of-tasty-reader.html>)

Author: For Scala

Published: 2026-02-19T23:00:00Z

Content type: article

Language: en

Sources: [The Scala Programming Language](<https://devfeed.tech/sources/the-scala-programming-language.md>)

Topics: [Scala](<https://devfeed.tech/topics/scala.md>), [interoperability](<https://devfeed.tech/topics/interoperability.md>), [migration](<https://devfeed.tech/topics/migration.md>), [Compiler](<https://devfeed.tech/topics/compiler.md>), [format](<https://devfeed.tech/topics/format.md>), [union types](<https://devfeed.tech/topics/union-types.md>)

Tags: [compatibility](<https://devfeed.tech/tags/compatibility.md>), [compiler](<https://devfeed.tech/tags/compiler.md>), [interoperability](<https://devfeed.tech/tags/interoperability.md>), [jvm](<https://devfeed.tech/tags/jvm.md>), [migrate](<https://devfeed.tech/tags/migrate.md>), [scala](<https://devfeed.tech/tags/scala.md>), [scala-3](<https://devfeed.tech/tags/scala-3.md>), [union-types](<https://devfeed.tech/tags/union-types.md>), [version](<https://devfeed.tech/tags/version.md>)

## AI overview

This article explains the changed compatibility relationship between Scala 2.13 and Scala 3 with the release of Scala 3.8. It describes the Scala 2.13 TASTy reader, its role as a migration aid, its technical limitations, and the publishing strategy for teams that need Scala 2.13 to consume Scala 3 libraries.

## Source excerpt

With the release of Scala 3.8, Scala 2.13 and Scala 3 interoperability is no longer bidirectional. Every Scala 3 version supports consuming Scala 2.13 artifacts. There are no reasons or plans to change that state. The Scala 2.13 TASTy reader (-Ytasty-reader) remains useful for migrations and consuming Scala 3 artifacts, but it will never be able to consume Scala 3.8 and later artifacts. Scala 3.7 is the last minor version whose artifacts will remain consumable from Scala 2. This post summarizes the current state, the compatibility boundaries, and the recommended publishing strategy for teams that still need Scala 2.13 to consume Scala 3 libraries. What is the TASTy reader? TASTy (Typed Abstract Syntax Trees) is the high-level interchange format used by Scala 3. Every Scala 3 compilation produces .tasty files alongside .class files. While .class files lose type information due to JVM type erasure (e.g. List[String] becomes List[Object]), TASTy files preserve the complete type information -- generic types, union types, intersection types, and more. The TASTy reader is a feature built into the Scala 2.13 compiler, enabled with the -Ytasty-reader flag. It allows a Scala 2.13 project to depend on libraries only published for Scala 3, by reading their .tasty files to reconstruct the precise type signatures that .class files alone cannot convey. The TASTy reader was designed as a migration aid -- not a permanent compatibility layer. It addressed a critical chicken-and-egg problem during the Scala 3 ecosystem bootstrap: library authors wanted to publish for Scala 3 but couldn't abandon Scala 2.13 users, while application developers on Scala 2.13 couldn't migrate until their dependencies were available. The TASTy reader broke this deadlock by enabling a forward-compatibility path, allowing Scala 2.13 projects to consume Scala 3-only libraries directly. Technical limitations of the Scala 2 TASTy reader Even though both Scala 2 and Scala 3 share most of the language features, so