contract CalldataTest { function test(bytes calldata x) public returns (bytes calldata) { return x; } function tester(bytes calldata x) public returns (bytes1) { return this.test(x)[2]; } } // ==== // EVMVersion: >=byzantium // ---- // tester(bytes): 0x20, 0x08, "abcdefgh" -> "c"