-
### Description
`a.nim`
```nim
proc readValue(T: type): T =
mixin readValue
readValue(result)
import "."/b
type beaconBlocksByRange_v2Obj = object
x: int
discard readValue(beaconB…
-
### Description
`m.nim`:
```nim
import ./j
import ./e
proc u(d: int | int) =
var r: Y
static: doAssert r is j.Y # because j is imported first
doAssert r is j.Y
u(0)
```
`j.ni…
-
### Description
Minimal reproduction:
```nim
import options
type
Node[T] = ref object
value: T
previous: Option[Node[T]]
next: Option[Node[T]]
LinkedList*[T] = object ## A…
-
### Description
```nim
proc n[T: bool](k: int | int) =
#static:
# doAssert T is bool
# doAssert T isnot int
# And runtime
block:
doAssert T is bool
doAssert T isnot int
…
-
### Description
```nim
type
Xable = concept
proc x(y: Self): int
A[T: Xable] = tuple
foo: T
B*[T: Xable] = object
a: A[T]
```
### Nim Version
Nim Compiler Version 2.0.8 [L…
-
### Description
# Test source
```nim
# Very slow ... but very quick in nim-2.0.8(1.6.20 best)!
#import std/lists
import std/os
#import std/strformat
import strutils
type
ObjRef = ref obje…
-
**Code**
```nim
==> Foo.nim BarA.nim BarB.nim Main.nim
-
### Description
This code would crash the compiler, [play](https://play.nim-lang.org/#ix=4y3y)
```Nim
import sugar
type El* = ref object
template add_or_return_el*(e: El): auto =
e
te…
-
### Description
```nim
let a = new array[1000, byte]
block:
for _ in cast[typeof(a)](a)[]:
discard
block:
let x = cast[typeof(a)](a) # not even var
for _ in x[]:
discard
``…
-
### Description
```nim
template m(a: uint, p: int) = discard
block:
template m(x: untyped, i: int) = echo x
proc j(n: int | int) = m([0][0], 0)
j(0)
```
### Nim Version
```
Nim Compi…