solidity/test/libsolidity/semanticTests/structs/event.sol

18 lines
250 B
Solidity
Raw Normal View History

2021-02-11 08:43:05 +00:00
pragma abicoder v2;
struct Item {uint x;}
library L {
event Ev(Item);
function o() public { emit L.Ev(Item(1)); }
}
contract C {
function f() public {
L.o();
}
}
// ====
// compileViaYul: also
// ----
// library: L
// f() ->