solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/293_function_is_not_a_valid_typename.sol

11 lines
185 B
Solidity
Raw Normal View History

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