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

8 lines
253 B
Solidity
Raw Normal View History

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