Commit 03a47b4
committed
Scala.js: Fix a codegen bug for switch matches in statement position.
The codegen chooses `jstpe.NoType` (`void`) over the declared type
of a `Match` node. That is normally fine, except if the declared
type was `Nothing`, in which case we must retain it, because the
enclosing statement might be demanding an expression of type
`Nothing`.1 parent 90720cf commit 03a47b4
1 file changed
+5
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2277 | 2277 | | |
2278 | 2278 | | |
2279 | 2279 | | |
2280 | | - | |
2281 | | - | |
2282 | | - | |
| 2280 | + | |
| 2281 | + | |
| 2282 | + | |
| 2283 | + | |
| 2284 | + | |
2283 | 2285 | | |
2284 | 2286 | | |
2285 | 2287 | | |
| |||
0 commit comments