Replies: 2 comments
-
Yeah, I ran into this too. |
Beta Was this translation helpful? Give feedback.
0 replies
-
FYI, I've submitted a bugfix for the CoreCLR (dotnet/coreclr#17877). If this gets merged, I'll try to see whether the fix can be backported to the CLR as well. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
https://github.com/dotnet/corefx/issues/26164
The following currently causes a
System.FormatException
due to a bug in the CLR:This is caused by a bug that has been located here where the CLR expects to see optional
DateTime
parameters with optional values annotated with theSystem.Runtime.CompilerServices.DateTimeConstantAttribute
attribute.This is obviously a bug in the CLR and should be fixed. The question would be should the C# compiler also emit this attribute to "smooth over" the bug on existing frameworks? Would that require a change to the language specification or would that be considered an implementation detail?
Beta Was this translation helpful? Give feedback.
All reactions