mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Fix internal error when using array slices
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
pragma experimental SMTChecker;
|
||||
|
||||
contract C {
|
||||
function f(bytes calldata x) external pure {
|
||||
x[:18726387213];
|
||||
x[18726387213:];
|
||||
x[18726387213:111111111111111111];
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// Warning: (94-109): Assertion checker does not yet implement this expression.
|
||||
// Warning: (113-128): Assertion checker does not yet implement this expression.
|
||||
// Warning: (132-165): Assertion checker does not yet implement this expression.
|
||||
@@ -0,0 +1,13 @@
|
||||
pragma experimental SMTChecker;
|
||||
|
||||
contract C {
|
||||
function f(bytes calldata x) external pure {
|
||||
bytes(x[:18726387213]);
|
||||
bytes(x[18726387213:]);
|
||||
bytes(x[18726387213:111111111111111111]);
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// Warning: (100-115): Assertion checker does not yet implement this expression.
|
||||
// Warning: (126-141): Assertion checker does not yet implement this expression.
|
||||
// Warning: (152-185): Assertion checker does not yet implement this expression.
|
||||
Reference in New Issue
Block a user