mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			13 lines
		
	
	
		
			528 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			528 B
		
	
	
	
		
			Solidity
		
	
	
	
	
	
contract C {
 | 
						|
    receive(bytes2) {}
 | 
						|
}
 | 
						|
contract D is C {
 | 
						|
    receive() {}
 | 
						|
}
 | 
						|
// ----
 | 
						|
// SyntaxError 4937: (17-35): No visibility specified. Did you intend to add "external"?
 | 
						|
// SyntaxError 4937: (60-72): No visibility specified. Did you intend to add "external"?
 | 
						|
// DeclarationError 7793: (17-35): Receive ether function must be payable, but is "nonpayable".
 | 
						|
// DeclarationError 4095: (17-35): Receive ether function must be defined as "external".
 | 
						|
// DeclarationError 6857: (24-32): Receive ether function cannot take parameters.
 |