From 11b16d660d9774ebe2259adcee91c99ff73da12d Mon Sep 17 00:00:00 2001 From: Joan Goyeau Date: Tue, 31 Oct 2023 19:05:16 -0400 Subject: [PATCH] Add -Yretain-trees option --- .../scala/org/typelevel/scalacoptions/ScalacOptions.scala | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/src/main/scala/org/typelevel/scalacoptions/ScalacOptions.scala b/lib/src/main/scala/org/typelevel/scalacoptions/ScalacOptions.scala index cb5b143..79387e3 100644 --- a/lib/src/main/scala/org/typelevel/scalacoptions/ScalacOptions.scala +++ b/lib/src/main/scala/org/typelevel/scalacoptions/ScalacOptions.scala @@ -467,6 +467,11 @@ private[scalacoptions] trait ScalacOptions { val privateSafeInit = privateOption("safe-init", version => version >= V3_0_0) + /** Enables retain trees for top-level classes, accessible from ClassSymbol#tree + */ + val privateRetainTrees = + privateOption("retain-trees", version => version >= V3_0_0) + /** Enables support for higher order unification in type constructor inference. * * Initially provided as a compiler option in the 2.12.x series to fix the infamous