mirror of
https://github.com/nim-lang/Nim.git
synced 2026-06-14 23:53:47 +00:00
tests: move regression t22842 into tests/types (auto-related)
This commit is contained in:
@@ -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
6
tests/types/t22842.nim
Normal 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)
|
||||
Reference in New Issue
Block a user