You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you add a new expression that can be nested inside itself, test deeply nesting it. Potentially cut off direct nesting. (N/A. Can't nest this directly deeply).
Championed proposal: dotnet/csharplang#8887
Speclet: https://github.com/dotnet/csharplang/blob/main/proposals/collection-expression-arguments.md
Compiler:
Errors
LanguageVersion_*CollectionBuilderCollectionBuilder_ObsoleteBuilderMethod_*CollectionInitializer_ObsoleteConstructor_*CollectionBuilderCollectionBuilder_UseSiteError_MethodConstructor_UseSiteError_MethodUnmanagedCallersOnlyCollectionBuilderCollectionBuilder_UnmanagedCallersOnlyWithElement_RequiredPropertiesCollectionBuilderCollectionBuilder_Private|Internal|ProtectedMethodWithElement_Private|Protected|etcConstructor*CollectionBuildertype - CollectionBuilderFileLocalType1CollectionBuilderparameter type - CollectionBuilderFileLocalType2CollectionBuilder- WithElement_CollectionBuilder_DynamicParametersDynamicArguments_04CollectionBuilder- WithElement_CollectionBuilder_DynamicArgumentsDynamicArguments_*CollectionExpressionTests_WithElement_ArraysAndSpanswithinparams:M(with(A, B), C, D)(disallowed)BindCollectionExpressionForErrorRecovery. Tested in TestErrorRecovery_XXX in IOperationTests_ICollectionExpressionOperation.ExpressionTreeInWithElementCollectionBuilderCollectionBuilder_MultipleBuilderMethods_GenericConstraints*,CollectionBuilder_GenericConstraintsWithElement_TypeConstraints*CollectionBuilderRefSafety_CollectionBuilderArgumentsRefSafety_ConstructorArgumentsIListandICollectionparametersIList_With_OptionalParamsAfterCapacityBehavior
CollectionBuilderEvaluationOrder_CollectionInitializer*EvaluationOrder_CollectionInitializerrefCollectionBuilderCollectionBuilder_RefParameterWithElement_RefParametersoutCollectionBuilderCollectionBuilder_OutParameterWithElement_OutParametersinCollectionBuilderCollectionBuilder_InParameterWithElement_InParametersref readonlyCollectionBuilderCollectionBuilder_RefReadonlyParameterparamsCollectionBuilderlots of testsWithElement_ParamsscopedCollectionBuilderRefSafety_CollectionBuilderArgumentsRefSafety_ConstructorArgumentsUnscopedRefCollectionBuilder- WithElement_CollectionBuilder_UnscopedRefWithElement_RefParameters, WithElement_UnscopedRefCollectionBuilderCollectionBuilder_OptionalParameter*CollectionInitializer_OptionalParameter*CollectionBuilderCollectionBuilder- WithElement_CollectionBuilder_ArgListArglist*CollectionBuilder- InterpolatedStringHandler_CollectionBuilderInterpolatedStringHandlerCollectionBuilderCollectionBuilder_MultipleBuilderMethods_GenericConstraints*WithElement_OverloadResolution*,WithElement_NoMatchingConstructor,WithElement_Constructor_UserDefinedConversion*,WithElement_IncorrectConstructorTypeCollectionBuilderCollectionBuilderOverloadResolutionPriorityOverloadResolutionPriorityIListandICollectioncapacity:parameterIList_With_*(covers bothIListandICollection)Public APIs
GetSymbolInfoGetSpeculativeSymbolInfo- GetSpeculativeSymbolInfoGetMemberGroup(currently returns nothing forwith(...)and: this(...))IOperationIDE
with- CSharpGoToDefinitionTests.TestCSharpGoToWithElementXXXwith- WithElementSignatureHelpProviderTestsCreatemethod used bywith- Not planned.