Forge Flatten creates duplicate declarations (unable to compile) #6022
Labels
A-compiler
Area: compiler
C-forge
Command: forge
Cmd-forge-build
Command: forge build
T-bug
Type: bug
Component
Forge
Have you ensured that all of these are up to date?
What version of Foundry are you on?
forge 0.2.0 (95a93cd 2023-08-25T00:32:44.694202000Z)
What command(s) is the bug in?
forge flatten
Operating System
macOS (Apple Silicon)
Describe the bug
To repro:
https://github.com/balancer/balancer-v2-monorepo/blob/master/pkg/vault/contracts/Vault.sol
Clone the repo and call
forge flatten Vault.sol > VaultFlattened.sol
Try to compile
VaultFlattened.sol
in a blank forge repoThe text was updated successfully, but these errors were encountered: