aboutsummaryrefslogblamecommitdiffstats
path: root/test/libsolidity/syntaxTests/nameAndTypeResolution/291_modifier_is_not_a_valid_typename.sol
blob: 2f3143d525017be66e6bce1c189c21c788e164dc (plain) (tree)
1
2
3
4
5
6
7
8
9








                                                                       
contract test {
    modifier mod() { _; }

    function f() public {
        mod g;
    }
}
// ----
// TypeError: (77-80): Name has to refer to a struct, enum or contract.