summary refs log tree commit diff stats
path: root/tests/errmsgs/t22097.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/errmsgs/t22097.nim')
-rw-r--r--tests/errmsgs/t22097.nim9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/errmsgs/t22097.nim b/tests/errmsgs/t22097.nim
new file mode 100644
index 000000000..bb24ee8d3
--- /dev/null
+++ b/tests/errmsgs/t22097.nim
@@ -0,0 +1,9 @@
+discard """
+  errormsg: "type mismatch: got <uint8>"
+"""
+
+proc toUInt16(x: var uint16) =
+  discard
+
+var x = uint8(1)
+toUInt16 x