solidity/test/libsolidity/syntaxTests/functionTypes/function_type_constructor_local.sol
2018-05-09 14:08:25 +02:00

9 lines
196 B
Solidity

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