aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/constructor/constructor_state_mutability.sol
blob: 39bf6384f651c8f70e27c333a85e1b532a5f4d75 (plain) (blame)
1
2
3
4
5
6
7
8
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".