`inline` may only inline the wrapper and not the worker
Summary
Using the inline
magic function on a reference to a function that has been worker-wrapper-transformed may result in only the worker being inlined, which is unlikely to be what the user intended.
Steps to reproduce
Observed when updating !5316 (closed) : getTraceFlags
needs to be inlined to get the best code, but I am observing that the worker is still present.
Expected behavior
The worker should be inlined.
Environment
- GHC version used: 9.6.2
Optional:
- Operating System: NixOS
- System Architecture: x86_64