solidity/test/libsolidity/syntaxTests/literalSuffixes/suffixableLiterals/suffixed_negative_as_signed.sol
2023-05-17 16:55:14 +02:00

25 lines
512 B
Solidity

function asUint(uint x) pure suffix returns (int) {}
function asSint(int x) pure suffix returns (int) {}
function asUdec(uint m, uint e) pure suffix returns (int) {}
function asSdec(int m, uint e) pure suffix returns (int) {}
contract C {
function f() public pure {
1 asUint;
1 asSint;
1 asUdec;
1 asSdec;
-1 asUint;
-1 asSint;
-1 asUdec;
-1 asSdec;
1.1 asUdec;
1.1 asSdec;
-1.1 asUdec;
-1.1 asSdec;
}
}