You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
nimble test and any proc that relies on concat including tensor display fails to compile on Nim devel.
Error is:
../src/tensor/display.nim(25, 27) template/generic instantiation of `disp3d` from here
../src/tensor/private/p_display.nim(94, 20) template/generic instantiation of `concat` from here
../src/tensor/shapeshifting.nim(211, 43) Error: type mismatch: got <HSlice[system.int, system.int], int literal(1)>
but expected one of:
proc `|`(a, b: typedesc): typedesc
first type mismatch at position: 1
required type: typedesc
but expression '
0 .. pred(it, 1)' is of type: HSlice[system.int, system.int]
expression:
0 .. pred(it, 1) | 1
nimble test
and any proc that relies onconcat
including tensor display fails to compile on Nim devel.Error is:
Related: nim-lang/Nim@f6def42, nim-lang/Nim#8603 and nim-lang/Nim#8677
It seems like
|
is resolved too early and the compiler doesn't see:Arraymancer/src/tensor/accessors_macros_syntax.nim
Lines 110 to 131 in 0a08949
The text was updated successfully, but these errors were encountered: