solidity/test/libsolidity/syntaxTests/constructor/constructor_old_050.sol
2018-04-18 14:24:35 +02:00

5 lines
251 B
Solidity

pragma experimental "v0.5.0";
contract A { function A() public {} }
// ----
// SyntaxError: (43-65): Functions are not allowed to have the same name as the contract. If you intend this to be a constructor, use "constructor(...) { ... }" to define it.