mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			10 lines
		
	
	
		
			272 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
			
		
		
	
	
			10 lines
		
	
	
		
			272 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
| contract test1 {
 | |
|   constructor() public view {}
 | |
| }
 | |
| contract test2 {
 | |
|   constructor() public pure {}
 | |
| }
 | |
| // ----
 | |
| // TypeError: (19-47): Constructor must be payable or non-payable, but is "view".
 | |
| // TypeError: (69-97): Constructor must be payable or non-payable, but is "pure".
 |