solidity/test/libsolidity/syntaxTests/constructor/constructor_state_mutability_new.sol
2018-07-03 15:31:34 +02:00

10 lines
258 B
Solidity

contract test1 {
constructor() view {}
}
contract test2 {
constructor() pure {}
}
// ----
// TypeError: (19-40): Constructor must be payable or non-payable, but is "view".
// TypeError: (62-83): Constructor must be payable or non-payable, but is "pure".