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
import std/typetraits
funcgetBaseType(T: typedesc): typedesc=## Unwrap nested seq/array to get the underlying base typewhen (T isseq|array):
getBaseType(genericParams(T)[0])
else:
T
echogetBaseType(seq[seq[seq[int]]])
Error is
.../build/crash.nim(11, 17) template/generic instantiation of `getBaseType` from here
.../build/crash.nim(6, 30) template/generic instantiation of `genericParams` from here
.../build/crash.nim(11, 17) template/generic instantiation of `getBaseType` from here
.../build/crash.nim(6, 30) template/generic instantiation of `genericParams` from here
Error: internal error: /home/runner/work/nightlies/nightlies/nim/compiler/semtypes.nim(1899, 26)
No stack traceback available
To create a stacktrace, rerun compilation with './koch temp c <file>', see https://nim-lang.github.io/Nim/intern.html#debugging-the-compiler for details
The text was updated successfully, but these errors were encountered:
The following crashes the compiler
Error is
The text was updated successfully, but these errors were encountered: