Fix ICE related to receive function having parameters.

This commit is contained in:
hrkrshnn
2021-06-03 13:08:57 +02:00
parent 9be57546db
commit c3eef8af91
14 changed files with 73 additions and 35 deletions
@@ -0,0 +1,12 @@
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.