If I open src/test/contracts/dynamic_entrypoints.mligo in VSCode, I see type errors, despite this contract can be compiled with ligo compile contract, so this error is a false negative
src/test/contracts/dynamic_entrypoints.mligo
ligo compile contract
The error is thrown during the scopes types pass