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 39aacad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
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 39aacad

Please sign in to comment.