Nim icon indicating copy to clipboard operation
Nim copied to clipboard

Nim is a statically typed compiled systems programming language. It combines successful concepts from mature languages like Python, Ada and Modula. Its design focuses on efficiency, expressiveness, an...

Results 713 Nim issues
Sort by recently updated
recently updated
newest added
trafficstars

``` nim type ZeroGenerator = object proc next(g: ZeroGenerator): int = 0 # This compiles. type TripleOfInts = tuple a, b, c: type(new(ZeroGenerator)[].next) # This raises a compiler error before...

Medium Priority
Generics
works_but_needs_test_case

### Description ```nim type SomeHandler = proc {.raises: [].} ``` ### Nim Version b880cdff49576c0eb83a043cbae595d3587c95b4 Works on 1.6.12 ### Current Output ```text /tmp/test.nim(1, 33) Error: invalid pragma: raises: [] ``` ###...

Feature

### Description Repro: - Create a `test.nim` file with e.g. `echo "hello"` in. - Compile with `nim c -r --hotcodereloading:on test.nim` - The build fails with clang errors. ### Nim...

Hot Code Reloading
ARC/ORC Memory Management

### Description ```nim # Module main proc doThing*() import sub proc doThing*() = echo "hmm" # module sub.nim import main doThing() ``` ### Nim Version 2.0.8 and devel ### Current...

Code Generation

### Description For-loop transformation places for-loop variables before the transformed code, unnecessarily extending their scope, and then closure iters transformation lifts such variables because they appear in more than one...

Performance

This is very adhoc solution, but it does enable querying an approximation of the AST on generic instance/types.

stale

### Description The `callOperator` fails to bind when the usage and declaration are spread across two different files. For example: ```nim ## ## myLib.nim ## type Functor* = ref object...

Error Messages

**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 `Error: expression '[(foo, 1)]' is...

Error Messages
Compiler Crash
Invalid Code Acceptance

typeof(a[0]) in proc return type gives: Error: type mismatch ### Example ```nim # proc fn[T](a: T, index: int): typeof(a.x) = a.x # ok proc fn2(a: seq[int], index: int): typeof(a[0]) =...

Another case of difficulties working with types #7719/https://github.com/nim-lang/RFCs/issues/44 and subtypes #6454 in macros. In the following case I am trying to extract a subtype of multiple containers. It works fine...

Generics
Macros
Symbol Resolution
works_but_needs_test_case