mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			18 lines
		
	
	
		
			404 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			404 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
contract C {
 | 
						|
	function testFunction() external {}
 | 
						|
 | 
						|
	function testYul() public returns (address adr) {
 | 
						|
		function() external fp = this.testFunction;
 | 
						|
 | 
						|
		assembly {
 | 
						|
			adr := fp.address
 | 
						|
		}
 | 
						|
	}
 | 
						|
	function testSol() public returns (address) {
 | 
						|
		return this.testFunction.address;
 | 
						|
	}
 | 
						|
}
 | 
						|
// ----
 | 
						|
// testYul() -> 0xc06afe3a8444fc0004668591e8306bfb9968e79e
 | 
						|
// testSol() -> 0xc06afe3a8444fc0004668591e8306bfb9968e79e
 |