Skip to content

Commit

Permalink
Update test/libsolidity/syntaxTests/tupleAssignments/assignments_to_t…
Browse files Browse the repository at this point in the history
…uple_and_non_tuple_expressions_of_tuple_types.sol

Co-authored-by: Kamil Śliwak <kamil.sliwak@codepoets.it>
  • Loading branch information
r0qs and cameel committed May 14, 2024
1 parent de8b5b5 commit 6efbf56
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ contract C {
uint[] public array;

function f() public {
(f()) = (); // Function call resolving to an empty tuple expression of type tuple(). Error
// (f()) is not a tuple expression, but its value is a tuple.
(f()) = ();
}

function g() public {
Expand Down

0 comments on commit 6efbf56

Please sign in to comment.