fixup! Code generation for errors.

This commit is contained in:
chriseth 2021-02-02 12:14:19 +01:00
parent 14a5c76f17
commit 3c69b7e552

View File

@ -0,0 +1,15 @@
struct S { uint a; string b; }
error E(uint a, S, uint b);
contract C {
S s;
function f(bool c) public {
s.a = 9;
s.b = "abc";
require(c, E(2, s, 7));
}
}
// ====
// compileViaYul: also
// ----
// f(bool): true ->
// f(bool): false -> FAILURE, hex"e96e07f0", 2, 0x60, 7, 9,0x40, 3, "abc"