solidity/test/libsolidity/semanticTests/structs/event.sol
2022-05-19 20:23:28 +02:00

17 lines
249 B
Solidity

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();
}
}
// ----
// library: L
// f() ->
// ~ emit Ev((uint256)): 0x01