Commit f55587b
committed
Set defTree properly
In the following test:
- tests/pos/i3130b.scala
If we add `transparent`, then everything is OK.
The reason is that we set `Symbol.defTree` systematically
in PostTyper. Now the inlining happens after PostTyper,
thus `defTree` is not properly set for inlined definitions.
To compensate, add ensure that `defTree` is set in the typer.
The inliner calls the typer, thus the inlined definitions will
have `defTree` set properly.1 parent e216eea commit f55587b
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2125 | 2125 | | |
2126 | 2126 | | |
2127 | 2127 | | |
2128 | | - | |
| 2128 | + | |
2129 | 2129 | | |
2130 | 2130 | | |
2131 | 2131 | | |
| |||
2265 | 2265 | | |
2266 | 2266 | | |
2267 | 2267 | | |
2268 | | - | |
| 2268 | + | |
2269 | 2269 | | |
2270 | 2270 | | |
2271 | 2271 | | |
| |||
0 commit comments