Commit 7624f5e
committed
Properly desugar implicit/erased dependent function types
In `typedDependent` we used to desugar the type `implicit (x: HasT) => x.T` to:
ImplicitFunction1[HasT, HasT#T] { def apply(x: HasT): x.T }
This commit sets the implicit/erased modifiers on all parameters of an
implicit/erased function type, this changes the desugaring to the more correct:
ImplicitFunction1[HasT, HasT#T] { def apply(implicit x: HasT): x.T }1 parent 2e6e6d3 commit 7624f5e
1 file changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
759 | 759 | | |
760 | 760 | | |
761 | 761 | | |
762 | | - | |
763 | | - | |
| 762 | + | |
| 763 | + | |
764 | 764 | | |
765 | 765 | | |
766 | 766 | | |
| |||
800 | 800 | | |
801 | 801 | | |
802 | 802 | | |
803 | | - | |
| 803 | + | |
804 | 804 | | |
805 | | - | |
| 805 | + | |
806 | 806 | | |
807 | 807 | | |
808 | 808 | | |
| |||
0 commit comments