Comments (1)
This is also covered in #71240. Collection expressions do not behave the same way as collection initializers (they are significantly restricted relative to them).
from roslyn.
Related Issues (20)
- VisitObjectInitializerExpression throws InvalidCastException on invalid VisualBasic expression HOT 2
- Extensions with constrained generic types are not recommended when invoked on a generic method parameter HOT 2
- Custom `IEnumarable<T>.Add(IEnumerable<T>)` + Collection Initalizer causes `csc.exe` to crash HOT 1
- File scoped namespaces should (arguably) be the default in VS code style settings for new users HOT 1
- Code cleanup "Apply conditional expression preferences" - in latest VS version
- Incorrect indentation of list pattern cases in switch expressions HOT 2
- [InlineArray] on a ref struct reports CS0306 as error, but CS9184 as a warning HOT 1
- `this` keyword for extension method not recommended in partial declaration of static class without `static` modifier HOT 1
- INamedTypeSymbol.Constructors - Method sometimes fails to return information for private constructors HOT 11
- Cannot intercept conditional access or pointer member access invocations HOT 1
- 'if' semantic snippet does not honor non-default brace placement at end of line
- Invalid "Collection initialization can be simplified" HOT 1
- Generate constructor fails when type contains a parameterless primary constructor
- Find References doesn't work when a class contains #line hidden directives
- VisualBasicAddExplicitCastCodeFixProvider: occuring error messsage for tuple contruct HOT 1
- Broken syntax highlighting for local variables C# HOT 8
- csharp_prefer_brace not working with 17.9
- Rename silently fails when "Rename symbol's file" is selected
- The compiler doesn't flag errors in simple 'using' statements.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from roslyn.