mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
10 lines
268 B
Solidity
10 lines
268 B
Solidity
contract test1 {
|
|
constructor() view {}
|
|
}
|
|
contract test2 {
|
|
constructor() pure {}
|
|
}
|
|
// ----
|
|
// TypeError 1558: (19-40): Constructor must be payable or non-payable, but is "view".
|
|
// TypeError 1558: (62-83): Constructor must be payable or non-payable, but is "pure".
|