You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Below is an attempt to make a limited-recursive data type using static generics, crashing the compiler with a SIGSEGV:
typeThing[D: staticuint] =objectwhen D ==0:
kid: charelse:
kid: Thing[D-1]
var s =Thing[1]()
My assumption was that Thing[1] would have Thing[0] as it's only element, and the Thing[0] type would get a char. Not sure if this is even supposed to work...
The text was updated successfully, but these errors were encountered:
Below is an attempt to make a limited-recursive data type using static generics, crashing the compiler with a SIGSEGV:
My assumption was that
Thing[1]
would haveThing[0]
as it's only element, and theThing[0]
type would get achar
. Not sure if this is even supposed to work...The text was updated successfully, but these errors were encountered: