mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
17 lines
361 B
Solidity
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
|