summary refs log tree commit diff stats
path: root/tests/arc/t20588.nim
diff options
context:
space:
mode:
authorBung <crc32@qq.com>2022-12-15 23:12:17 +0800
committerGitHub <noreply@github.com>2022-12-15 16:12:17 +0100
commit8054be6e529db9e65a18e4c4a37ec54f64f9121c (patch)
tree4951b329d56ba03d544a13b4df396de223e32a81 /tests/arc/t20588.nim
parentd88f46df388604c1d21a2a95482c3255dc5884b6 (diff)
downloadNim-8054be6e529db9e65a18e4c4a37ec54f64f9121c.tar.gz
fix #20588 (#21104)
Diffstat (limited to 'tests/arc/t20588.nim')
-rw-r--r--tests/arc/t20588.nim22
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)