solidity/test/libsolidity/syntaxTests/enums/global_enum_shadowing.sol

11 lines
196 B
Solidity

enum E { A }
contract C {
enum E { A }
function f() public pure {
E e = E.A;
e;
}
}
// ----
// Warning 2519: (30-42): This declaration shadows an existing declaration.