solidity/test/libsolidity/syntaxTests/metaTypes/integer_pure.sol
Harikrishnan Mulackal e4e200f29f Changelog and tests
2020-05-11 15:29:05 +05:30

17 lines
361 B
Solidity

contract test {
function viewAssignment() public view {
int min = type(int).min;
min;
}
function assignment() public {
int max = type(int).max;
max;
}
}
// ----
// Warning: (21-112): Function state mutability can be restricted to pure
// Warning: (118-200): Function state mutability can be restricted to pure