mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	Merge pull request #9463 from a3d4/improve-error-coverage-only-one-receive
Add "Only one receive function is allowed"-error to syntax tests
This commit is contained in:
		
						commit
						0dc111bac9
					
				| @ -0,0 +1,8 @@ | |||||||
|  | contract C { | ||||||
|  |     receive() external payable { } | ||||||
|  |     receive() external payable { } | ||||||
|  |     receive() external payable { } | ||||||
|  | } | ||||||
|  | // ---- | ||||||
|  | // DeclarationError 4046: (52-82): Only one receive function is allowed. | ||||||
|  | // DeclarationError 4046: (87-117): Only one receive function is allowed. | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user