From 63f2cd33f8cc169ef65c90532bd91bb293f842ab Mon Sep 17 00:00:00 2001 From: ringabout <43030857+ringabout@users.noreply.github.com> Date: Sat, 4 Apr 2026 12:59:32 +0800 Subject: [PATCH] tests: add regression test for issue #22842 (auto in proc type) --- tests/ic_crash_cases/t22842.nim | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 tests/ic_crash_cases/t22842.nim 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)