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
Test
proc foo: var int = discard let f = foo()
Result: SIGSEGV: Illegal storage access. (Attempt to read from nil?)
SIGSEGV: Illegal storage access. (Attempt to read from nil?)
I would expect the compiler to be able to catch situations like this (or a clearer error message).
> nim -v Nim Compiler Version 0.13.1 (2016-04-04) [Windows: i386] Copyright (c) 2006-2016 by Andreas Rumpf git hash: 147961d0069ed434796eed9ceacf52914087f789 active boot switches: -d:release
The text was updated successfully, but these errors were encountered:
See also bug #124
Sorry, something went wrong.
Now produces:
temp.nim(2, 21) Warning: Cannot prove that 'result' is initialized. This will become a compile time error in the future.
No branches or pull requests
Test
Result:
SIGSEGV: Illegal storage access. (Attempt to read from nil?)
I would expect the compiler to be able to catch situations like this (or a clearer error message).
The text was updated successfully, but these errors were encountered: