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

8 lines
243 B
Solidity

contract C {
// Fool parser into parsing a constructor as a function type.
constructor() x;
}
// ----
// Warning: (83-99): Modifiers of functions without implementation are ignored.
// DeclarationError: (97-98): Undeclared identifier.