solidity/test/libsolidity/syntaxTests/functionTypes/function_type_constructor_local.sol
2018-04-11 22:00:21 +02:00

9 lines
206 B
Solidity

contract C {
// Fool parser into parsing a constructor as a function type.
function f() {
constructor() x;
}
}
// ----
// ParserError: (118-118): Expected token Semicolon got 'Identifier'