Add "Only one receive function is allowed"-error to syntax tests

This commit is contained in:
a3d4 2020-07-17 00:37:16 +02:00
parent 47ab6e73a7
commit 7e0a291fac
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.