mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			9 lines
		
	
	
		
			245 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
			
		
		
	
	
			9 lines
		
	
	
		
			245 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
| abstract contract A {
 | |
| 	function test() private virtual returns (uint256);
 | |
| }
 | |
| abstract contract X is A {
 | |
| 	function test() private override returns (uint256) {}
 | |
| }
 | |
| // ----
 | |
| // TypeError 3942: (23-73): "virtual" and "private" cannot be used together.
 |