mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Type Checker: Fix internal error when applying unary operators to tuples with empty components
This commit is contained in:
+9
@@ -0,0 +1,9 @@
|
||||
contract C
|
||||
{
|
||||
function f() public
|
||||
{
|
||||
int x = --(,);
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// TypeError: (59-64): Unary operator -- cannot be applied to type tuple(,)
|
||||
Reference in New Issue
Block a user