-
### Description
```nim
proc `++`(n: var int) =
n += 1
type
r = range[ 0..15 ]
var a: r = 15
++a
echo a
```
this code should have thrown an error because I'm trying to ass…
-
I am not sure if this is a nimlangserver or a nimble issue. Installing nimlangserver using `nimble install nimlangserver` installs nim 2.0.2 even though I am using nim devel (installed via `choosenim`…
-
### Example
```sh
./koch.py tests r tests/lang/s02_core/s02_procedures/t02_argument_passing.nim
```
### Actual Output
```
FAIL: tests/lang/s02_core/s02_procedures/t02_argument_passing.nim …
-
### Example
```sh
./koch.py tests --targets:c r tests/lang_experimental/views/tprocedural_views.nim
```
### Actual Output
```
FAIL: tests/lang_experimental/views/tprocedural_view…
-
**Code**
```nim
template foo(f) = f
discard {foo: ord(true)}
```
**Result**
```nim
Error: internal error: getTypeDescAux(tyUntyped)
No stack traceback available
```
Without discard I get `Er…
-
### Description
I am compiling a nim file on Windows using MSVC build tools.
If I use default settings then the compilation passes as expected:
`C:\nimtest\nim-2.0.8\bin\nim.exe c --cc:vcc test.n…
-
### Description
test.nim:
```nim
let sp = @[1, 2]
echo sp[1]
```
`$ nim cpp -f test.nim`
```
/Users/niv/.cache/nim/test_d/@mtest.nim.cpp:146:11: warning: array index 1 is past the end …
-
### Abstract
Make them a keyword, which can automatically help users add corresponding pragmas, just like `func` does.
### Motivation
In this RFC, it is a sweet syntax sugar, and in the futur…
-
Happens on OSX, on a Mac M1. Some kind of error around checksums not being found
```
nimble install nimble …
-
### Description
```nim
proc y[N](): array[N, int] = default(array[N, int])
discard y[1]()
```
`nim c -c` suffices, i.e. this is a compile-time, not runtime phenomenon.
### Nim Version
```
Ni…