mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Fix ICE by avoiding copyForLocation() on ArraySliceType
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
// Used to cause ICE
|
||||
contract C {
|
||||
function f(uint[] calldata x) external pure {
|
||||
x[1:2].a;
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// TypeError: (92-100): Member "a" not found or not visible after argument-dependent lookup in uint256[] calldata slice.
|
||||
Reference in New Issue
Block a user