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

8 lines
184 B
Solidity

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