Make visibility optional, but it has to be consistent.

This commit is contained in:
chriseth
2020-07-07 12:16:18 +02:00
parent 479d7a059f
commit 5959d442cb
13 changed files with 78 additions and 15 deletions
@@ -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.