aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/functionTypes/function_type_constructor.sol
blob: 51f0b10d1dd09af173c29cc32c5c6817df539daf (plain) (blame)
1
2
3
4
5
6
7
contract C {
    // Fool parser into parsing a constructor as a function type.
    constructor() public x;
}
// ----
// SyntaxError: (83-106): Functions without implementation cannot have modifiers.
// DeclarationError: (104-105): Undeclared identifier.