Summary
Display compiler warnings for macros with missing imports
Metadata
- Id: 7c7f77a27a528feda284ab5dfab1d15fc0dc9f38
- Trac id: 1605
- Type: enhancement
- Reporter: wasamasa
- Owner:
- Cc:
- Status: new
- Component: compiler
- Estimated difficulty: hard
- Resolution:
- Priority: minor
- Milestone: 6.0.0
- Version: 5.0.0
- Changetime: 2023-11-06 23:54:29 UTC
- Created: 2019-04-10 12:07:55 UTC
- Keywords:
Description
The compiler already displays warnings for procedures with missing imports which is super useful, especially when compiling code that's not wrapped in a module (wrapping it in a module will turn the warnings into errors). However there is no equivalent for macros with missing imports and neither does wrapping them into a module produce a warning or error. This leads to less than obvious errors if you later import such a macro into other code and compile it, you'll then get an error for the import you forgot to add for the macro's module. See #1603 for an example.