diff --git a/tests/ic_crash_cases/t22842.nim b/tests/ic_crash_cases/t22842.nim deleted file mode 100644 index 885da610b1..0000000000 --- a/tests/ic_crash_cases/t22842.nim +++ /dev/null @@ -1,6 +0,0 @@ -## 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) diff --git a/tests/types/t22842.nim b/tests/types/t22842.nim new file mode 100644 index 0000000000..d6a5001e00 --- /dev/null +++ b/tests/types/t22842.nim @@ -0,0 +1,6 @@ +## Regression test for issue 22842 - auto in proc type +## The example should compile and run without internal compiler error. + +proc register(cb: proc (e: auto): void) = discard + +register(proc (e: int) = echo e)