Type Checker: Fix internal error when applying unary operators to tuples with empty components

This commit is contained in:
a3d4
2020-04-29 02:18:48 +02:00
parent 55e34407d3
commit 3bd15655cb
7 changed files with 65 additions and 7 deletions
@@ -0,0 +1,9 @@
contract C
{
function f() public
{
(int x) = ++(,);
}
}
// ----
// TypeError: (61-66): Unary operator ++ cannot be applied to type tuple(,)