tests: move regression t22842 into tests/types (auto-related)

This commit is contained in:
ringabout
2026-04-04 13:07:55 +08:00
parent 63f2cd33f8
commit 8785e64efc
2 changed files with 6 additions and 6 deletions

View File

@@ -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)

6
tests/types/t22842.nim Normal file
View File

@@ -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)