fix(c_sharp): missing tuple_pattern capture

This commit is contained in:
Jeremy Capblancq 2024-07-28 12:59:55 -04:00
parent 960cce4eba
commit b40b683602
No known key found for this signature in database
GPG key ID: 9214DE282A3E15B0
2 changed files with 14 additions and 0 deletions

View file

@ -38,6 +38,10 @@
"(" @delimiter
")" @delimiter @sentinel) @container
(tuple_pattern
"(" @delimiter
")" @delimiter @sentinel) @container
(attribute_argument_list
"(" @delimiter
")" @delimiter @sentinel) @container

View file

@ -36,4 +36,14 @@ public class TestClass
{
return (1, 2, (3, 4));
}
private (int, int) GetTupleValue()
{
return (1, 2);
}
private void TestConsumeTuple()
{
var (a, b) = GetTupleValue();
}
}