Skip to content

Commit 463b10f

Browse files
wilkajskeet
authored andcommitted
Update TupleConstruction.cs
"No names in declaration, so names in construction are irrelevant" means you need to declare it without names.
1 parent d17223e commit 463b10f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CSharp7/CSharp7/TupleConstruction.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ static void Main()
2424
(long a, int b) tuple4 = (1, 2);
2525

2626
// No names in declaration, so names in construction are irrelevant
27-
var tuple5 = (a: 1, b: 2);
27+
(int, int) tuple5 = (a: 1, b: 2);
2828
}
2929
}
3030
}

0 commit comments

Comments
 (0)