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
{.experimental: "views".} type Foo = object value: openArray[string] proc main(): auto = let a = ["1", "2", "3"] let foo = Foo(value: a.toOpenArray(0, 2)) return foo echo main()
https://play.nim-lang.org/#ix=41Mo
SIGSEGV: Illegal storage access. (Attempt to read from nil?) Segmentation fault (core dumped)
Compile-time error
$ nim -v Nim Compiler Version 1.6.6 [Windows: amd64] Compiled at 2022-05-05 Copyright (c) 2006-2021 by Andreas Rumpf active boot switches: -d:release
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Example
https://play.nim-lang.org/#ix=41Mo
Current Output
Expected Output
Compile-time error
The text was updated successfully, but these errors were encountered: