mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Make visibility optional, but it has to be consistent.
This commit is contained in:
@@ -2,4 +2,4 @@ contract test {
|
||||
constructor() external {}
|
||||
}
|
||||
// ----
|
||||
// SyntaxError 2462: (17-42): Visibility specified for constructor. If you want the contract to be non-deployable, make it "abstract".
|
||||
// TypeError 9239: (17-42): Constructor cannot have visibility.
|
||||
|
||||
Reference in New Issue
Block a user