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
sizeof
type ArrayBuf*[N: static int, T] = object buf: array[N, T] func maxLen(T: type): int = sizeof(T) * 2 type MyBuf[I: type] = ArrayBuf[maxLen(I), byte] var v: MyBuf[int]
note I: type in alias - removing it gives #24043 instead
I: type
2.0.8
testit.nim(5, 9) Error: 'sizeof' requires '.importc' types to be '.completeStruct'
No response
The text was updated successfully, but these errors were encountered:
lots of bugs in nim
0c55600
* nim-lang/Nim#24043 * nim-lang/Nim#24044 * nim-lang/Nim#24045
Would guess fixed by #23983 but not sure
Probably shouldn't backport but add test case instead
Sorry, something went wrong.
No branches or pull requests
Description
note
I: type
in alias - removing it gives #24043 insteadNim Version
2.0.8
Current Output
Expected Output
No response
Known Workarounds
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: