mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			9 lines
		
	
	
		
			247 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
			
		
		
	
	
			9 lines
		
	
	
		
			247 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
| abstract contract C {
 | |
|     function foo() external pure virtual returns (uint);
 | |
| }
 | |
| contract X is C {
 | |
| 	uint public override foo;
 | |
| }
 | |
| // ----
 | |
| // TypeError 6959: (100-124): Overriding public state variable changes state mutability from "pure" to "view".
 |