Skip to content

Commit 39aacad

Browse files
committed
feature: Allow fewer braces for Scala 3.3.x
Follow up from scala/scala3#16297
1 parent e65b4c9 commit 39aacad

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

scalameta/dialects/shared/src/main/scala/scala/meta/dialects/package.scala

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,9 @@ package object dialects {
150150

151151
implicit val Scala32 = Scala31
152152

153-
implicit val Scala3 = Scala32
153+
implicit val Scala33 = Scala31.withAllowFewerBraces(true)
154+
155+
implicit val Scala3 = Scala33
154156

155157
implicit val Scala3Future = Scala3
156158
.withAllowUnderscoreAsTypePlaceholder(true)

tests/shared/src/test/scala/scala/meta/tests/parsers/dotty/FewerBracesSuite.scala

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ import scala.meta._
44

55
class FewerBracesSuite extends BaseDottySuite {
66

7-
protected override implicit val dialect = dialects.Scala3.withAllowFewerBraces(true)
8-
97
test("simple") {
108
runTestAssert[Stat](
119
"""|val firstLine = files.get(fileName).fold:

0 commit comments

Comments
 (0)