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:
chriseth
2020-07-22 10:40:49 +02:00
committed by GitHub
2 changed files with 8 additions and 0 deletions
@@ -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.