Petr Onderka

Results 93 comments of Petr Onderka

Related: https://github.com/dotnet/docs/issues/5410.

It seems you downloaded the .Net Runtime for ARM 64 processors. For AMD (and Intel) processors, you want the x64 version.

> * The `support-phases` property for .NET 7 will transition from `go-live` to `sts` on November 8th. This should be `support-phase`, singular, right?

@syntechtix [Top-level statements support `await`.](https://sharplab.io/#v2:C4LgTgrgdgNAJiA1AHwAICYCMBYAUKgBgAJVMBWAbjz1QE4SA2AOgBEBTAGwEMBPACkwECASir5MtPgCIAEpw4B7InE682cIgHcFYDnACEU0UA==)

@jaredpar What if the new `const` expressions were completely separate from the existing constant expressions and `const` fields/variables? Syntactically, it could look something like: ```c# ReadOnlySpan data = const byte[]...

> > Additionally, the constructor of the type would be restricted in what it can do with the 'this' reference, limited only to directly reading and writing fields on the...

``` c# public class Person { public Person(string firstName, string lastName, DateTimeOffset birthDay) { FirstName = firstName; LastName = lastName; BirthDay = birthDay; } public string FirstName { get; }...

@JoergWMittag `System.Collections.Generic.List` can't be covariant (even if I ignore the fact that no class can be covariant in .Net), because it's mutable. It's not a good counterpart to Haskell's `[a]`....

@yaakov-h You could have `List`, but you couldn't use variant conversions on it, which is what @JoergWMittag was talking about. Consider: ```c# List listOfNothing = new List(); List listOfStream =...

The problem is that the version of Roslyn used by your source generator has to be supported by the .Net SDK that you're using. Experimentally, I get the same error...