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

8 lines
254 B
Solidity
Raw Normal View History

contract C {
// Fool parser into parsing a constructor as a function type.
2020-06-23 12:14:24 +00:00
constructor() x;
}
// ----
2020-06-23 12:14:24 +00:00
// SyntaxError 2668: (83-99): Functions without implementation cannot have modifiers.
// DeclarationError 7576: (97-98): Undeclared identifier.