-
When passing a `static openArray[uint64]` to another function, in some cases the Nim compiler generates incorrect code if the caller has the same function name. Instead of passing the `uint64` array a…
-
**Test**
```nim
# p3.nim
import std/macros
macro p3*(this: untyped): untyped =
result = this
result[^1] = quote do:
echo currentSourcePath()
echo getStackTraceEntries()[^1].filen…
-
### Description
Type mismatch while setting the value for the default argument generates wrong code but no compilation error.
```nim
func foo[T](arr: openArray[T], idx: Natural = arr.high): int…
-
### Description
```nim
type
PBOption[defaultValue: static[auto]] = object
some: bool
value: typeof(defaultValue)
Type1* = object
a: PBOption[default(ref Type2)]
Type2* = …
-
### What happened?
Originally described in https://github.com/pragmagic/vscode-nim/issues/198
```nim
type
All = enum
a1
a2
b1
b2
A = range[a1..a2]
B = range[b1.…
-
### Example
```sh
./koch.py tests --targets:c r tests/lang_experimental/views/tprocedural_views.nim
```
### Actual Output
```
FAIL: tests/lang_experimental/views/tprocedural_view…
-
```nim
import macros, fusion/matching
{.experimental: "caseStmtMacros".}
case newLit 0
else: discard
```
**current output**
```
Nim/compiler/nim.nim(138) nim
Nim/compiler/nim.nim(94) hand…
-
### 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…
-
### Description
Example:
```nim
proc register(cb: proc (e: auto): void) = discard
register(proc (e: int) = echo e)
```
### Nim Version
Nim Compiler Version 2.1.1 [Windows: amd64]
https://g…
ghost updated
1 month ago
-
> Life has a melody, Gaius. A rhythm of notes that become your existence once
> they're played in harmony with God's plan. Come. See the face of the shape of things to come.
> -- "6" fr…