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
Function b outputs the wrong string.
b
proc takeSink(x: sink string): bool = true proc b(x: sink string): string = if takeSink(x): return x & "abc" proc main(inp: string) = let y = inp & "xyz" echo b(y) main("123")
The text was updated successfully, but these errors were encountered:
fixes #14207
8698df8
b6fb609
destructors: don't produce stupid code for 'cast' (#14208) [backport:…
2977a31
…1.2] * destructors: don't produce stupid code for 'cast' * fixes #14207 (cherry picked from commit b6fb609)
destructors: don't produce stupid code for 'cast' (nim-lang#14208) [b…
29bff8b
…ackport:1.2] * destructors: don't produce stupid code for 'cast' * fixes nim-lang#14207
No branches or pull requests
Function
b
outputs the wrong string.Example
The text was updated successfully, but these errors were encountered: