Skip to content

Commit 8b9e0b7

Browse files
committed
New test for missed case.
1 parent 4556f48 commit 8b9e0b7

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
contract A {
2+
function f(uint256[] calldata a) external virtual returns (uint256);
3+
}
4+
5+
contract B is A {
6+
function f(uint256[] calldata a) public override returns (uint256) {
7+
return a[0];
8+
}
9+
10+
function g(uint[] calldata x) public returns (uint256) {
11+
return f(x);
12+
}
13+
}
14+
// ====
15+
// compileViaYul: also
16+
// ----
17+
// f(uint256[]): 0x20, 1, 9 -> 23
18+
// g(uint256[]): 0x20, 1, 9 -> 23

0 commit comments

Comments
 (0)