-
This snippet:
```nim
import macros
type
Kind = enum kOne, kTwo
Thing = object
case kind: Kind
of kOne:
v1: int
of kTwo:
v2: int
m…
-
The error points to this line: https://github.com/nim-lang/Nim/blob/a263e9aae0ec8a6f05ae20aa66596a37b3827e93/lib/pure/os.nim#L825
This seems to be implemented in `lib/system/nimscript.nim`, but tha…
-
### What happened?
Unserializing a table on the js target fails.
The c backend works.
Just run the code once on the c target, to generate the data.
Then run it on the js target to see the error.
…
-
## Context
It is very important than under no circumstances that Nimbus never leaks private keys.
Ideally, Nimbus never has knowledge of those and all private key manipulations are done in a separ…
-
Hello,
This is a continuation of https://github.com/nim-lang/Nim/issues/11194#issuecomment-492052660.
To use the `--cppCompileToNamespace` switch properly, I need to understand what to expect wh…
-
Function `echo` outputs the wrong string.
### Example
```nimimport asyncdispatch
iterator x(): int {.closure.} =
discard
proc y() {.async.} =
for z in x():
discard
waitFor y(…
-
There is a known issue with `nimsuggest` and `nim check` eating up CPU usage on certain files: https://github.com/nim-lang/Nim/issues/11679
This issue is a couple of years old, and might take a whi…
-
in both cases of https://github.com/AndreiRegiani/INim/issues/29, there's a flush missing:
the result of 1st echo isn't shown
whereas `nim` itself does flush:
```
nim c -o:app -r bugs/t59_array_…
-
### Description
```nim
discard allocCStringArray([""])
```
compiled with
```
nim c -r --mm:refc --passC="-fsanitize=undefined" --passL="-fsanitize=undefined" a.nim
```
Where `allocCStringArr…
-
The following code crushes the compiler
```nim
converter toInt(c: char): int = int(c)
var c: int = 5
case c
of 'a' .. 'c': discard
else: discard
```
```
bug.nim(5, 4) Error: internal erro…