Commit 68a24c0
committed
Fix crashing tests
Before this commit, the tests listed below would crash when the stricter
pattern binding rules were enforced (whether using `-source future` or
now enabled by default)
- neg/parser-stability-14.scala
- neg/i4453.scala
- fuzzy/CCE-aafcaa9cd2611d22f63273738d637f5bec6e7152.scala
- fuzzy/comment3.scala
with a common stack trace:
dotty.tools.dotc.core.Types$PreviousErrorType cannot be cast to dotty.tools.dotc.core.Types$TermRef
dotty.tools.dotc.transform.patmat.SpaceEngine$.isIrrefutable(Space.scala:316)
dotty.tools.dotc.typer.Checking.recur$1(Checking.scala:828)
dotty.tools.dotc.typer.Checking.checkIrrefutable(Checking.scala:843)
dotty.tools.dotc.typer.Checking.checkIrrefutable$(Checking.scala:775)
dotty.tools.dotc.typer.Typer.checkIrrefutable(Typer.scala:119)
...1 parent ddecebc commit 68a24c0
1 file changed
+5
-2
lines changedLines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
313 | 313 | | |
314 | 314 | | |
315 | 315 | | |
316 | | - | |
317 | | - | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
318 | 321 | | |
319 | 322 | | |
320 | 323 | | |
| |||
0 commit comments