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
commit 0dc111bac9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View File

@ -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.