Forbid constructing tuple-related types via "new" #14216
Labels
Area-Compilers
Area-Language Design
Feature - Tuples
Tuples
Language-C#
Resolution-Answered
The question has been answered
Milestone
We decided for forbid creating a tuple type using the tuple syntax (#10891) so that we can reserve the syntax
new (1, 2)
for a target-typed object creation expression (#35). However there are related syntax forms that we may want to forbid as well.new (Int32, Int32)[] { (1, 2), (1, 2) }
new (Int32, Int32)?()
new (Int32, Int32)?[] { (1, 2), null }
new (Int32, Int32)?[10]
Forbidding these syntax forms today will make integration of #35 easier later.
The text was updated successfully, but these errors were encountered: