summary refs log tree commit diff stats
path: root/tests/accept/compile
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2011-03-27 00:33:20 +0100
committerAraq <rumpf_a@web.de>2011-03-27 00:33:20 +0100
commitdc669155e39007f1b584eef247dff90523f836bf (patch)
tree5233362a6af2ac7232159ffebb7bfc19ea27026b /tests/accept/compile
parent45f8d31c4718fb20498b16a621f3d14b3056b5cc (diff)
downloadNim-dc669155e39007f1b584eef247dff90523f836bf.tar.gz
some little bugfixes
Diffstat (limited to 'tests/accept/compile')
-rw-r--r--tests/accept/compile/tcan_inherit_generic.nim7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/accept/compile/tcan_inherit_generic.nim b/tests/accept/compile/tcan_inherit_generic.nim
index fa92c7986..76d9fab1f 100644
--- a/tests/accept/compile/tcan_inherit_generic.nim
+++ b/tests/accept/compile/tcan_inherit_generic.nim
@@ -6,5 +6,12 @@
 
 type
   TGen[T] = object
+    x, y: T
+  
   TSpef[T] = object of TGen[T]
 
+
+var s: TSpef[float]
+s.x = 0.4
+s.y = 0.6
+