We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1040923 commit 664783bCopy full SHA for 664783b
compiler/src/dotty/tools/dotc/parsing/Parsers.scala
@@ -1587,11 +1587,14 @@ object Parsers {
1587
else infixType()
1588
1589
in.token match
1590
- case ARROW | CTXARROW => functionRest(t :: Nil)
+ case ARROW | CTXARROW =>
1591
+ erasedArgs.addOne(false)
1592
+ functionRest(t :: Nil)
1593
case MATCH => matchType(t)
1594
case FORSOME => syntaxError(ExistentialTypesNoLongerSupported()); t
1595
case _ =>
1596
if isPureArrow then
1597
1598
functionRest(t :: Nil)
1599
else
1600
if (erasedArgs.exists(_ == true) && !t.isInstanceOf[FunctionWithMods])
0 commit comments