Records Stack Overflow - Compiler Bug? #4000
Answered
by
TonyValenti
TonyValenti
asked this question in
General
-
I think this is a compiler bug. Run this code:
This results in code similar to the following:
Which causes a stack overflow because it recursively tries to print the static This looks like a bug to me. |
Beta Was this translation helpful? Give feedback.
Answered by
TonyValenti
Oct 12, 2020
Replies: 1 comment 1 reply
-
My suggestion is that record's |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
333fred
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
My suggestion is that record's
ToString
should not print out static members.