diff options
author | Bung <crc32@qq.com> | 2022-12-15 23:12:17 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-15 16:12:17 +0100 |
commit | 8054be6e529db9e65a18e4c4a37ec54f64f9121c (patch) | |
tree | 4951b329d56ba03d544a13b4df396de223e32a81 /tests/arc/t20588.nim | |
parent | d88f46df388604c1d21a2a95482c3255dc5884b6 (diff) | |
download | Nim-8054be6e529db9e65a18e4c4a37ec54f64f9121c.tar.gz |
fix #20588 (#21104)
Diffstat (limited to 'tests/arc/t20588.nim')
-rw-r--r-- | tests/arc/t20588.nim | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/arc/t20588.nim b/tests/arc/t20588.nim new file mode 100644 index 000000000..d747c656d --- /dev/null +++ b/tests/arc/t20588.nim @@ -0,0 +1,22 @@ +discard """ + cmd: "nim check --warnings:off --hints:off $file" + errormsg: "" + nimout: ''' +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' +''' +""" + + + + + + + + + + +discard 0.0.auto +discard typed("abc") +discard untyped(4) |