mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-15 03:52:44 +00:00
tests: add regression test for issue #22842 (auto in proc type)
This commit is contained in:
6
tests/ic_crash_cases/t22842.nim
Normal file
6
tests/ic_crash_cases/t22842.nim
Normal 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)
|
||||
Reference in New Issue
Block a user