summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
authorZahary Karadjov <zahary@gmail.com>2014-02-20 23:33:58 +0200
committerZahary Karadjov <zahary@gmail.com>2014-02-20 23:33:58 +0200
commit1a6d05515ff96e8bba294b352493cb7da2794a96 (patch)
tree1c085be2fc034c47f3632b98eb5c667b3938c847 /tests
parent0bbf6081d00e83329021a0051d92c3433fc8a00f (diff)
downloadNim-1a6d05515ff96e8bba294b352493cb7da2794a96.tar.gz
fix #945
Diffstat (limited to 'tests')
-rw-r--r--tests/metatype/tusertypeclasses.nim5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/metatype/tusertypeclasses.nim b/tests/metatype/tusertypeclasses.nim
index 4c8c0fc56..5b04c490f 100644
--- a/tests/metatype/tusertypeclasses.nim
+++ b/tests/metatype/tusertypeclasses.nim
@@ -31,9 +31,10 @@ proc intval(x: int) = discard
 # check real and virtual fields
 type
   TFoo = generic T
-    intval T.x
+    T.x
+    y(T)
     intval T.y
-
+    
 proc y(x: TObj): int = 10
 
 proc testFoo(x: TFoo) = discard