summary refs log tree commit diff stats
path: root/tests/misc/t16244.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/misc/t16244.nim')
-rw-r--r--tests/misc/t16244.nim9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/misc/t16244.nim b/tests/misc/t16244.nim
new file mode 100644
index 000000000..5e8128736
--- /dev/null
+++ b/tests/misc/t16244.nim
@@ -0,0 +1,9 @@
+discard """
+  errormsg: "type mismatch: got <int, float64>"
+  line: 9
+"""
+
+proc g(): auto = 1
+proc h(): auto = 1.0
+
+var a = g() + h()