Array(T)#* of recursive type alias #8607
Labels
kind:bug
A bug in the code. Does not apply to documentation, specs, etc.
status:needs-more-info
topic:compiler:semantic
When updating an old project to the current Crystal release I found a case that used to work but now fails to build and looks like a compiler bug. Here is a reduced version:
Here is the compiler output:
In particular, notice that the last line says
Pointer(Array(String) | Array(Type) | String)
is not the same asPointer(Array(String) | Array(Type) | String)
. But they look pretty much the same to me. Not sure what is going on.This used to work on Crystal 0.30.1 (https://play.crystal-lang.org/#/r/88y1) but broke on Crystal 0.31.0 (https://play.crystal-lang.org/#/r/88y0)
The text was updated successfully, but these errors were encountered: