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

11 lines
196 B
Solidity
Raw Normal View History

2019-09-02 09:52:51 +00:00
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.