Fix assignment of return variables from modifiers.

This commit is contained in:
chriseth
2021-11-01 14:14:50 +01:00
parent 408bd5fa62
commit 8e208f23cb
3 changed files with 20 additions and 2 deletions
@@ -0,0 +1,15 @@
contract C {
modifier m1(uint value) {
_;
}
modifier m2(uint value) {
_;
}
function f() public m1(x = 2) m2(y = 3) returns (uint x, uint y) {
}
}
// ====
// compileViaYul: also
// ----
// f() -> 2, 3