-
Similar to #12096 but this one is still crashing while #12096 returns an error "Maybe generic arguments are missing?"
```Nim
type Foo = object
hook: tuple[onHeartbeat: proc(env: pointer) {.nimc…
-
Originally from: https://forum.nim-lang.org/t/6679
I ran into a incredible frustrating issue where my compiler was seg faulting due to missing a ref in a type declaration. In the below code just sw…
-
Steps to reproduce
```
git clone https://github.com/yglukhov/iface-nim-crash
cd iface-nim-crash
nim c test1
```
```
/Users/yglukhov/proj/nim-devel/compiler/nim.nim(117) nim
/Users/yglukhov/pro…
-
If you try to compile the following file:
```nim
proc id*[T](t:T):T {.exportc,dynlib,cdecl.} = t
discard id(5)
discard id("hello world")
```
with the settings:
```nim
--app:lib
--head…
-
this RFC improves on `--path:path` as follows:
* avoids need for `src` in nimble packages, without any of the downsides of scope pollution mentioned in https://github.com/nim-lang/RFCs/issues/267#iss…
-
### Example
```nim
type
Result[T, E] = object
DataProc = proc(val: openArray[byte])
GetProc = proc (onData: DataProc): Result[bool, cstring]
func get[T, E](self: Result[T, E]): T =
…
-
```nim
import macros
macro dumpRepr(u: typed) =
echo repr u
template decl(a: untyped) =
proc `a @ procName`(`a @ param`: int) = discard
dumpRepr:
decl(hi)
```
Actual output:
```n…
-
### Description
I have a hard time coming up with a proper title for this issue, please correct me if you know a better one.
The code below fails to compile, there is some funny interaction going …
-
EDIT by @narimiran - simplified example at the top, so our tools can pick it up:
```nim
iterator FaiReader(): string {.closure.} =
yield "something"
template toClosure(i): auto =
iterator…
-
The following snippet makes the compiler crash.
It is due to the use of `low` instead of `lo` in the asm, Nim tries to check the return type and crashes in ccgtypes.
```Nim
# GCC/Clang only
pr…