solidity/test/libsolidity/syntaxTests/functionTypes/function_type_constructor_local.sol

9 lines
196 B
Solidity
Raw Normal View History

contract C {
// Fool parser into parsing a constructor as a function type.
function f() {
constructor() x;
}
}
// ----
2018-05-02 18:49:36 +00:00
// ParserError: (118-118): Expected ';' but got identifier