solidity/test/libsolidity/syntaxTests/constructor/function_named_constructor.sol

6 lines
278 B
Solidity
Raw Normal View History

contract C {
2020-06-23 12:14:24 +00:00
function constructor();
}
// ----
// ParserError 3323: (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.