Open smarter opened 1 year ago
The issue is that all the code within quotes is pickled and encoded as a TASTy binary in PickleQuoted. Therefore the AST is never seen by the checking phases.
The solution is to keep both the pickled and non-pickled versions of the AST for more phases. The question is in which structure to retain the original AST.
Compiler version
3.3.1-RC1-bin-20230502-dee0065-NIGHTLY
Minimized code
Output
No compiler error
Expectation
The fact that we don't check for override errors has weird consequences like in https://github.com/lampepfl/dotty/issues/17398#issuecomment-1533139570.