Commit a020409
Harden tryReduce
When compiling kind-incorrect code in neg/anykind3.scala, substParams fails with
an index-out-bounds exception. It is called from tryReduce via instantiate. We
know there are several scenarios where this can happen - Sandro has detected
a couple of others. This commit avoids the problem by aborting the reduce
if there is an index out of bounds.1 parent 1bb183a commit a020409
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
367 | 367 | | |
368 | 368 | | |
369 | 369 | | |
370 | | - | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
371 | 373 | | |
372 | 374 | | |
373 | 375 | | |
| |||
0 commit comments