aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/nameAndTypeResolution/125_enum_member_access_accross_contracts.sol
blob: 3bed62d67b8046bc218bb8e83d034c240f0bd196 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
contract Interface {
    enum MyEnum { One, Two }
}
contract Impl {
    function test() public returns (Interface.MyEnum) {
        return Interface.MyEnum.One;
    }
}
// ----
// Warning: (72-166): Function state mutability can be restricted to pure