tests: add regression test for issue #22842 (auto in proc type)

This commit is contained in:
ringabout
2026-04-04 12:59:32 +08:00
parent 854c1f15ba
commit 63f2cd33f8

View File

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