提交 76412488 编写于 作者: S Steve Niles 提交者: Julien Couvreur

Incorrect syntax in tuple documentation? (#13321)

上级 a20a6cb7
......@@ -227,7 +227,7 @@ var t = (null, 5); // Error: tuple expression doesn't have a type bec
((1,2, null), 5).ToString(); // Error: tuple expression doesn't have a type
ImmutableArray.Create((()=>1, 1)); // Error: tuple expression doesn't have a type because lambda does not have a type
ImmutableArray.Create((Func<int>)()=>1, 1); // ok
ImmutableArray.Create(((Func<int>)(()=>1), 1)); // ok
```
A tuple literal may include names, in which case they become part of the natural type:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册