diff options
author | ringabout <43030857+ringabout@users.noreply.github.com> | 2023-03-23 23:10:14 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-23 16:10:14 +0100 |
commit | 55636a2913d0b0dec6b24568cb6baef43a9220c1 (patch) | |
tree | 73b99b12902e502b7ab724b2661f4ecd2591d7be /tests/arc/t20588.nim | |
parent | e8a70ff1794e941a6930c3d240af16a708b59339 (diff) | |
download | Nim-55636a2913d0b0dec6b24568cb6baef43a9220c1.tar.gz |
fixes #14255; Crash in compiler when using `system.any` by accident. (#21562)
fixes #14255; Crash in compiler when using system.any by accident.
Diffstat (limited to 'tests/arc/t20588.nim')
-rw-r--r-- | tests/arc/t20588.nim | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/arc/t20588.nim b/tests/arc/t20588.nim index d747c656d..008bd1dcd 100644 --- a/tests/arc/t20588.nim +++ b/tests/arc/t20588.nim @@ -5,6 +5,7 @@ discard """ t20588.nim(20, 12) Error: illegal type conversion to 'auto' t20588.nim(21, 14) Error: illegal type conversion to 'typed' t20588.nim(22, 16) Error: illegal type conversion to 'untyped' +t20588.nim(24, 7) Error: illegal type conversion to 'any' ''' """ @@ -16,7 +17,9 @@ t20588.nim(22, 16) Error: illegal type conversion to 'untyped' - discard 0.0.auto discard typed("abc") discard untyped(4) +var a = newSeq[bool](1000) +if any(a): + echo "ok?" \ No newline at end of file |