Rikki Gibson

Results 153 comments of Rikki Gibson

This requires a new feature which amends these parts of the ['static lambdas' speclet](https://github.com/dotnet/csharplang/blob/master/proposals/static-lambdas.md): > No guarantee is made as to whether a `static` lambda definition is emitted as a...

Wanted to address https://github.com/dotnet/csharplang/discussions/6111#discussioncomment-2723273 in the original issue (cc @HaloFour) > I think that would also tie the compiler to a specific implementation of how static lambdas are emitted. They...

I think @HaloFour's suggestion was to adjust lowering/emit in some cases so that no local variable is introduced and no delegate is actually allocated for the lambda. ```cs Func multiply...

In this bit, it seems like we weren't precisely correct in our assumptions on how the calls within interpolated string conversions could be formed. An unscoped in-parameter could come in...

What's the effect of placing CompilerGenerated on the constructor? It prevents the debugger from stepping in?

Started poking at this scenario a bit and I observed what I think is a bug. [SharpLab](https://sharplab.io/#v2:EYLgtghglgdgNAExAagD4AEBMBGAsAKAPQGYACAZwBcAnAVwGNLSBlAgbwNK9NiYA9SAXlLYA3J269SAT3GF83UgHolFABYB7WgBsEpYAFNSEbdo0B3AwglcVpAA4HqaiPfKkABiFKU1UcgAUAJQe6lq6+kYA5L7+QqQIBgBmEDqUolE2yqq+BjCkdPlJUAYRsFCUUCZQAF5O5FkkLAFS0kGk3rGBQVkcCtwAvgQDQA=) ```cs public struct S { int x = 1; int y; // should...

I believe it was a bug that @oising's scenario worked at the time. dotnet/roslyn#57870 We can either change the language so that @oising's scenario works again with well-defined behavior, or...

> If it was a bug that let people add initializers to structs without adding a ctor, then I'd imagine quite a lot of people are taking advantage of that...

> Note that there is still a hole for field-like events coming from metadata Is there a test for this scenario? I'm not sure I understand it.

Can't we use a modreq for this? Something like `class FilePrivate { }`? Of course when you import an assembly containing such modreqs, the 'handling' for them is to simply...