mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #9135 from ethereum/fixReturnParameterLocation
Fixing ICE on calling externally a function that returns calldata pointers
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
contract CalldataTest {
|
||||
function test(bytes calldata x) public returns (bytes calldata) {
|
||||
return x;
|
||||
}
|
||||
function tester(bytes calldata x) public returns (byte) {
|
||||
return this.test(x)[2];
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// EVMVersion: >=byzantium
|
||||
// ----
|
||||
// tester(bytes): 0x20, 0x08, "abcdefgh" -> "c"
|
||||
Reference in New Issue
Block a user