diff options
author | Zahary Karadjov <zahary@gmail.com> | 2014-03-09 14:02:01 +0200 |
---|---|---|
committer | Zahary Karadjov <zahary@gmail.com> | 2014-03-09 14:02:01 +0200 |
commit | 4b09a897583a38bea144e86b8b99b1347b525280 (patch) | |
tree | 83c08c6620067594a1712152adead71631ccd12b /tests/overload/tissue966.nim | |
parent | 518b794491897aba2c5be739287018a0c4828aeb (diff) | |
download | Nim-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.nim | 12 |
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() + |