mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			17 lines
		
	
	
		
			200 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			200 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
| library L {
 | |
| 	function f() internal returns (uint) {
 | |
| 		return 3;
 | |
| 	}
 | |
| }
 | |
| 
 | |
| contract C {
 | |
| 	function foo() public returns (uint) {
 | |
| 		return (L.f)();
 | |
| 	}
 | |
| }
 | |
| 
 | |
| // ====
 | |
| // compileViaYul: also
 | |
| // ----
 | |
| // foo() -> 3
 |