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:
@@ -0,0 +1,9 @@
|
||||
contract test1 {
|
||||
constructor() public view {}
|
||||
}
|
||||
contract test2 {
|
||||
constructor() public pure {}
|
||||
}
|
||||
// ----
|
||||
// TypeError: (19-47): Constructor must be payable or non-payable, but is "view".
|
||||
// TypeError: (69-97): Constructor must be payable or non-payable, but is "pure".
|
||||
Reference in New Issue
Block a user