diff --git a/tests/ic_crash_cases/t22842.nim b/tests/ic_crash_cases/t22842.nim new file mode 100644 index 0000000000..885da610b1 --- /dev/null +++ b/tests/ic_crash_cases/t22842.nim @@ -0,0 +1,6 @@ +## Issue 22842 - internal error: getTypeDescAux(tyAnything) with auto in proc type +## Test added because the case now compiles without the internal error. + +proc register(cb: proc (e: auto): void) = discard + +register(proc (e: int) = echo e)