Fix ICE by avoiding copyForLocation() on ArraySliceType

This commit is contained in:
Mathias Baumann
2020-05-26 17:27:46 +02:00
parent 5fedb4eab0
commit b3cafe4583
4 changed files with 16 additions and 4 deletions
@@ -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.