From be8dc28d8464e04f7a7ee91a777c5029e1958d50 Mon Sep 17 00:00:00 2001 From: Tomasz Godzik Date: Tue, 8 Nov 2022 13:29:40 +0100 Subject: [PATCH] feature: Allow fewer braces for Scala 3.3.x Follow up from https://github.com/lampepfl/dotty/pull/16297 --- .../shared/src/main/scala/scala/meta/dialects/package.scala | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scalameta/dialects/shared/src/main/scala/scala/meta/dialects/package.scala b/scalameta/dialects/shared/src/main/scala/scala/meta/dialects/package.scala index 1d852f3a1c..7aef007af6 100644 --- a/scalameta/dialects/shared/src/main/scala/scala/meta/dialects/package.scala +++ b/scalameta/dialects/shared/src/main/scala/scala/meta/dialects/package.scala @@ -150,7 +150,9 @@ package object dialects { implicit val Scala32 = Scala31 - implicit val Scala3 = Scala32 + implicit val Scala33 = Scala31.withAllowFewerBraces(true) + + implicit val Scala3 = Scala33 implicit val Scala3Future = Scala3 .withAllowUnderscoreAsTypePlaceholder(true)