aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/nameAndTypeResolution/293_function_is_not_a_valid_typename.sol
blob: 390eccd977f59d1f3c1bfdb435ec1df7a1681fbd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
contract test {
    function foo() public {
    }

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