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
enumEABCend
[{:a, :a},
{:b, :b},
{:c, :c}] of Tuple(E, E)
Showing last frame. Use --error-trace for full trace.
error in line 7
Error: no overload matches 'Pointer(Tuple(E, E))#[]=' with types Int32, Tuple(Symbol, Symbol)
Overloads are:
- Pointer(T)#[]=(offset, value : T)
Doesn't compile. But it should, I think.
They're inferred to be Symbols but they're actually Es. The Pointer thing in the error message is weird too.
No, sorry. It works for Array because arrays are expanded to []= calls and the symbol is autocasted to Enum. But autocasting isn't applied to things inside other things, in this case things inside a tuple.
Compiles.
Doesn't compile. But it should, I think.
They're inferred to be
Symbol
s but they're actuallyE
s. ThePointer
thing in the error message is weird too.Extracted from #7690 (comment).
The text was updated successfully, but these errors were encountered: