summary refs log tree commit diff stats
path: root/tests/overload/tissue966.nim
diff options
context:
space:
mode:
authorZahary Karadjov <zahary@gmail.com>2014-03-09 14:02:01 +0200
committerZahary Karadjov <zahary@gmail.com>2014-03-09 14:02:01 +0200
commit4b09a897583a38bea144e86b8b99b1347b525280 (patch)
tree83c08c6620067594a1712152adead71631ccd12b /tests/overload/tissue966.nim
parent518b794491897aba2c5be739287018a0c4828aeb (diff)
downloadNim-4b09a897583a38bea144e86b8b99b1347b525280.tar.gz
fix #966
test for ``map`` defined as inline iterator
Diffstat (limited to 'tests/overload/tissue966.nim')
-rw-r--r--tests/overload/tissue966.nim12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/overload/tissue966.nim b/tests/overload/tissue966.nim
new file mode 100644
index 000000000..53ec2f108
--- /dev/null
+++ b/tests/overload/tissue966.nim
@@ -0,0 +1,12 @@
+discard """
+  msg: 'type mismatch: got (PTest)'
+"""
+
+type
+  PTest = ref object
+
+proc test(x: PTest, y: int) = nil
+
+var buf: PTest
+buf.test()
+