Comments (2)
I would also like to highlight another discrepancy related to functions.
This does not compile:
var str = (() => "Hello World")(); // does not compile
However, this compiles:
var str = ((Func<string>)(() => "Hello World"))(); // compiles
from roslyn.
@cston for visibility. I think this is a subtle issue relating to lambda natural type.
from roslyn.
Related Issues (20)
- Add `ArgumentKind.ParamCollection` HOT 1
- Explicit interface member completion doesn't work with params collections
- Clone of UnwrapParamsArray fpr params collections
- Clone of Test_IndexerWithNoRequiredParameters for params collections fails
- Enumerable.Empty and IDE0301 HOT 4
- Unexpected coalesce operation is applied to `char.ToString()` involved into concatenation with a null or empty constant string HOT 1
- c# struct operator taking "in" (byref) fails to report CS8374 when used with "this" and can expose internals / cause stack corruption HOT 3
- EnC: Changing the type of a locked expression should be a rude edit
- VB Value Task HOT 4
- NRE in QuickInfo HOT 2
- type hints for collection expressions
- Cleanup Microsoft.CommonLanguageServerProtocol.Framework
- False nullability warnings for delegate conversions HOT 3
- Missing nullability warnings in delegate conversions HOT 2
- A ton of C# keywords are missing in `langword` doc comment tag completions
- Doc comment completions should not insert `=""` if there is already one
- Remove compat workaround for interceptors file path lookup.
- Semantic snippets: `cw` snippet is not offered after lambda's arrow
- Pasting content into raw string doesn't respect smart ident HOT 2
- InterceptsLocation with generic return value does not work HOT 5
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.