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
EDIT: Looks like you have added parameters in the meantime. I'll check it out.
This gives me an invalid syntax error.
@sumtypeA{T}(B{T}, B{Int})
And it's clear your code does not support parameterized sumtypes. I commented on the discourse post about this. Do you have another branch that supports this? If not, it shouldn't be hard to add it.
It would be good to detect the possible collision when T == Int and insert a check in the constructor.
Unfortunatley, all of this starts to add lines to your slim 150 line code.
yes, I added the support for parametrized types. Actually I think that
@sumtype` A{T}(B{T}, B{Int})
could be supported but we need to reorder internally the types so that concrete version precedes the abstract one. But actually there are other cases that I think we should anyway handle by throwing some errors
The problematic cases are e.g.:
The text was updated successfully, but these errors were encountered: