Commit 505ce22
committed
Workaround ill-scoped exist. skolem refs emited by patmat
e.g `val x2 = Foo[$1] with Bar = boundValue`
is rewritten to `val x2 = (Foo[$1] @uncheckedBounds) with Bar = boundValue`
This is to have refchecks turn a blind eye to the type argument that
doesn't conform the to type parameter bounds.
For regular compilation, without the async transform between patmat
and refchecks, bound conformance is disabled with:
https://github.com/scala/scala/blob/v2.11.7/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala#L1743
Using the `uncheckedBounds` annotation is a newer, more inclusive way
of acheiving the same thing:
https://github.com/scala/scala/blob/v2.11.7/src/compiler/scala/tools/nsc/typechecker/RefChecks.scala#L16771 parent ad1905a commit 505ce22
File tree
2 files changed
+41
-1
lines changed- src
- main/scala/scala/async/internal
- test/scala/scala/async/run/late
2 files changed
+41
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
524 | 524 | | |
525 | 525 | | |
526 | 526 | | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
527 | 539 | | |
528 | 540 | | |
529 | 541 | | |
530 | 542 | | |
531 | 543 | | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
532 | 572 | | |
533 | 573 | | |
534 | 574 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
476 | 476 | | |
477 | 477 | | |
478 | 478 | | |
479 | | - | |
| 479 | + | |
480 | 480 | | |
481 | 481 | | |
482 | 482 | | |
| |||
0 commit comments