solidity/test/libsolidity/syntaxTests/constructor/constructor_state_mutability.sol
2022-04-01 23:41:18 -05:00

10 lines
316 B
Solidity

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