Open korvahkh opened 1 year ago
This bug is caused by the frontend and should result in a cycle, but for some reason it is not being checked. For that to work, it would need to be T :: distinct map[string]T
IF that even makes any sense to begin with.
Running the following code:
results in an infinite recursion between
fmt.fmt_value
andfmt.fmt_named
until the stack overflows.It looks like this is caused by a bug in type info generation, where
T
's base type is indicated as being itself.Note that this behavior is rather volatile, and seemingly insignificant changes cause this not to happen, for example:
works as expected.