Commit e1510e3
authored
Fix warning about
Discussing with @bishabosha and further investigating, I realized the
warning I introduced yesterday in #25750 is wrong.
Code generated by macros is actually checked, even without
`-Xcheck-macros`, here:
https://github.com/scala/scala3/blob/20fc4c757617742af469c925d48beaf888f7ebfe/compiler/src/dotty/tools/dotc/inlines/Inliner.scala#L966-L967
The errors I am missing are due to these checks being run without an
expected type, which I'll try to address separately (#25756).
This PR reverts #25750, but still rephrase to avoid saying these are
_runtime_ checks.-Xcheck-macros (#25757)2 files changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
0 commit comments