Commit 1139338
committed
Fix Mirror.Product for type lambdas
We don't need to guess how the type parameters should be substituted.
Instead we can use the result type directly to obtain the member type.
This exposed another issue - the mirrored type contained type variables.
To get rid of them we apply `Type.stripTypeVar` recursively.1 parent 1f48de1 commit 1139338
File tree
3 files changed
+42
-13
lines changed- compiler/src/dotty/tools/dotc
- core
- typer
- tests/pos
3 files changed
+42
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
829 | 829 | | |
830 | 830 | | |
831 | 831 | | |
| 832 | + | |
| 833 | + | |
| 834 | + | |
| 835 | + | |
| 836 | + | |
| 837 | + | |
| 838 | + | |
832 | 839 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
249 | 249 | | |
250 | 250 | | |
251 | 251 | | |
| 252 | + | |
252 | 253 | | |
253 | 254 | | |
254 | | - | |
255 | | - | |
256 | | - | |
257 | | - | |
258 | | - | |
259 | | - | |
260 | | - | |
261 | | - | |
262 | | - | |
263 | | - | |
| 255 | + | |
264 | 256 | | |
265 | | - | |
266 | | - | |
| 257 | + | |
267 | 258 | | |
268 | 259 | | |
269 | 260 | | |
| |||
344 | 335 | | |
345 | 336 | | |
346 | 337 | | |
347 | | - | |
| 338 | + | |
348 | 339 | | |
349 | 340 | | |
350 | 341 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
0 commit comments