mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			19 lines
		
	
	
		
			280 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			280 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();
 | 
						|
    }
 | 
						|
}
 | 
						|
// ====
 | 
						|
// compileViaYul: also
 | 
						|
// ----
 | 
						|
// library: L
 | 
						|
// f() ->
 | 
						|
// ~ emit Ev((uint256)): 0x01
 |