sanic
❔ Weird Record compilation error: "must be a readable instance property or field"
I wouldn't include the diagnostic ID in the issue title, just paraphrase the general diagnostic message, e.g. "'Record member does not match positional parameter' diagnostic message is unclear" or something like that.
28 replies
❔ Weird Record compilation error: "must be a readable instance property or field"
It would be handy if you could file a bug on us, asking us to use a symbol display format which makes it more clear what the offending member is. e.g. if it was
Record member 'LfsResponseObject.Error(string, HttpStatusCode)' must be a readable instance property or fieldI think it would be clear
28 replies
✅ (solved!) "System.InvalidOperationException: Sequence contains no elements" error from Roslyn
thanks! And don't worry about it. 🙂 These are bugs we would probably file on ourselves if we discovered them, even if we might not go out of our way to fix them.
46 replies
✅ (solved!) "System.InvalidOperationException: Sequence contains no elements" error from Roslyn
I think this is saying: the type of the
a?.b
expression is a Nullable, so we essentially want to make an expression like new int?(a.b)
, and for some reason, we found no constructor on int?
with a single parameter.46 replies
✅ (solved!) "System.InvalidOperationException: Sequence contains no elements" error from Roslyn
I think the crash is going through this path https://sourceroslyn.io/#Microsoft.CodeAnalysis.CSharp/Lowering/LocalRewriter/LocalRewriter_ConditionalAccess.cs,136
46 replies