Skip to content

Commit

Permalink
feature: Allow fewer braces for Scala 3.3.x
Browse files Browse the repository at this point in the history
Follow up from scala/scala3#16297
  • Loading branch information
tgodzik committed Nov 8, 2022
1 parent e65b4c9 commit 96e88f0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -794,6 +794,7 @@ object Dialect extends InternalDialect {
Scala30,
Scala31,
Scala32,
Scala33,
Paradise211,
Paradise212,
ParadiseTypelevel211,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ import scala.meta._

class FewerBracesSuite extends BaseDottySuite {

protected override implicit val dialect = dialects.Scala3.withAllowFewerBraces(true)

test("simple") {
runTestAssert[Stat](
"""|val firstLine = files.get(fileName).fold:
Expand Down

0 comments on commit 96e88f0

Please sign in to comment.