solidity/test/libsolidity/syntaxTests/types/constant_of_invalid_function_type.sol

8 lines
179 B
Solidity

contract C {
// Used to cause internal compiler error.
function() returns (x) constant x = x;
}
// ----
// TypeError: (77-78): Name has to refer to a struct, enum or contract.