mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			6 lines
		
	
	
		
			275 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
			
		
		
	
	
			6 lines
		
	
	
		
			275 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
| contract B { function f() virtual public view {} }
 | |
| contract C is B { function f() public {} }
 | |
| // ----
 | |
| // TypeError: (69-91): Overriding function is missing "override" specifier.
 | |
| // TypeError: (69-91): Overriding function changes state mutability from "view" to "nonpayable".
 |