aboutsummaryrefslogblamecommitdiffstats
path: root/test/libsolidity/syntaxTests/nameAndTypeResolution/292_modifier_is_not_a_valid_typename_is_not_fatal.sol
blob: 9187c19d99776a8726e21f0a38fcaabb5c072836 (plain) (tree)
1
2
3
4
5
6
7
8
9
10









                                                                       
contract test {
    modifier mod() { _; }

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