aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/constructor/function_named_constructor.sol
blob: 68273c0a0c9aea87e403b29557dadad0e8878eb0 (plain) (blame)
1
2
3
4
5
contract C {
    function constructor() public;
}
// ----
// ParserError: (26-37): This function is named "constructor" but is not the constructor of the contract. If you intend this to be a constructor, use "constructor(...) { ... }" without the "function" keyword to define it.