From 6da8c7857e41cc21dd3a0685417ac7e2f0465561 Mon Sep 17 00:00:00 2001 From: Peter Mora Date: Fri, 21 Aug 2015 21:15:08 +0200 Subject: extending metatype matching in sigmatch.nim --- tests/metatype/tprocbothmeta.nim | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 tests/metatype/tprocbothmeta.nim (limited to 'tests') diff --git a/tests/metatype/tprocbothmeta.nim b/tests/metatype/tprocbothmeta.nim new file mode 100644 index 000000000..ad12c5d26 --- /dev/null +++ b/tests/metatype/tprocbothmeta.nim @@ -0,0 +1,10 @@ + +proc myFun[A,B](x: A): B = + result = float(x+10) + +proc myMap[T,S](sIn: seq[T], f: proc (q: T): S): seq[S] = + result = newSeq[S](sIn.len) + for i in 0..