Skip to content

Commit 8a1d7ba

Browse files
committed
Fix places using unsupported lambda syntax
1 parent 5194716 commit 8a1d7ba

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

compiler/src/dotty/tools/dotc/parsing/Parsers.scala

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -418,6 +418,10 @@ object Parsers {
418418
finally staged = saved
419419
}
420420

421+
val x = 2
422+
if (x + 1 == 3) && true then 1 else 2
423+
424+
421425
/* ---------- TREE CONSTRUCTION ------------------------------------------- */
422426

423427
/** Convert tree to formal parameter list
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
scala> try { 0 } catch { _: Throwable => 1 }
1+
scala> try { 0 } catch { (_: Throwable) => 1 }
22
val res0: Int = 0

0 commit comments

Comments
 (0)