mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			21 lines
		
	
	
		
			279 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			279 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
contract A
 | 
						|
{
 | 
						|
	function test() external virtual returns (uint256)
 | 
						|
	{
 | 
						|
		return 5;
 | 
						|
	}
 | 
						|
}
 | 
						|
contract X is A
 | 
						|
{
 | 
						|
	uint256 public override test;
 | 
						|
 | 
						|
	function set() public { test = 2; }
 | 
						|
}
 | 
						|
// ====
 | 
						|
// compileToEwasm: also
 | 
						|
// compileViaYul: also
 | 
						|
// ----
 | 
						|
// test() -> 0
 | 
						|
// set() ->
 | 
						|
// test() -> 2
 |