mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Adjusts syntax tests to new constructor syntax.
This commit is contained in:
@@ -1,3 +1,3 @@
|
||||
contract A { function A() public {} }
|
||||
// ----
|
||||
// Warning: (13-35): Defining constructors as functions with the same name as the contract is deprecated. Use "constructor(...) { ... }" instead.
|
||||
// SyntaxError: (13-35): 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.
|
||||
|
||||
Reference in New Issue
Block a user