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
In the Generics type mismatch series #7432 and #7446
typeHexChars=range['0'..'9'] orrange['A'..'F'] orrange['a'..'f']
procfoo(x: HexChars) =discardlet a ='0'foo(a)
Error: type mismatch: got <char>
but expected one of:
proc foo(x: HexChars)
expression: foo(a)
I'm not sure range can be used like that but there should be an error message "you cannot combine Generics with ranges" in case it's not supposed to work like that.
The text was updated successfully, but these errors were encountered:
In the Generics type mismatch series #7432 and #7446
I'm not sure range can be used like that but there should be an error message "you cannot combine Generics with ranges" in case it's not supposed to work like that.
The text was updated successfully, but these errors were encountered: