We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The following with static[int8] compiles:
static[int8]
type Coord*[N: static[int8]] = tuple[col, row: range[0'i8 .. (N-1)]] Point*[N: static[int8]] = range[0'i16 .. N.int16 * N.int16 - 1]
But with static[int] it doesn't. Error: type mismatch: got <N> but expected 'int8'
static[int]
Error: type mismatch: got <N> but expected 'int8'
type Coord*[N: static[int]] = tuple[col, row: range[0'i8 .. (N.int8-1)]] Point*[N: static[int]] = range[0'i16 .. N.int16 * N.int16 - 1]
The text was updated successfully, but these errors were encountered:
Proper check for tyStatic[T] -> U conversions
ba68f72
Drop the outer tyStatic shell then perform the check. Fixes nim-lang#7609
Proper check for tyStatic[T] -> U conversions (#10382)
ae5d8fb
Drop the outer tyStatic shell then perform the check. Fixes #7609
Proper check for tyStatic[T] -> U conversions (nim-lang#10382)
dab3ebd
No branches or pull requests
The following with
static[int8]
compiles:But with
static[int]
it doesn't.Error: type mismatch: got <N> but expected 'int8'
The text was updated successfully, but these errors were encountered: