Commit f7259cf
committed
Make
Overloading may create a temporary symbol via `Applications#resolveMapped`, but
before this commit, this symbol did not carry the annotations from the original
symbol. This meant in particular that `isInlineable` would always return false
for them. This matters because during the course of overloading resolution we
might call `ProtoTypes.Compatibility#constrainResult` which special-cases
transparent inline methods.
Fixes a regression in Monocle introduced in the previous commit.
wipApplications#resolveMapped preserve annotations1 parent 528d0f0 commit f7259cf
File tree
2 files changed
+12
-0
lines changed- compiler/src/dotty/tools/dotc/typer
- tests/pos
2 files changed
+12
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2503 | 2503 | | |
2504 | 2504 | | |
2505 | 2505 | | |
| 2506 | + | |
2506 | 2507 | | |
2507 | 2508 | | |
2508 | 2509 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
0 commit comments