solidity/test/libsolidity/syntaxTests/enums/global_enum_shadowing.sol
2019-09-02 11:52:51 +02:00

11 lines
191 B
Solidity

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