summary refs log tree commit diff stats
path: root/tests/tobject2.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/tobject2.nim')
-rwxr-xr-xtests/tobject2.nim21
1 files changed, 0 insertions, 21 deletions
diff --git a/tests/tobject2.nim b/tests/tobject2.nim
deleted file mode 100755
index 8f69a6bac..000000000
--- a/tests/tobject2.nim
+++ /dev/null
@@ -1,21 +0,0 @@
-# Tests the object implementation
-
-type
-  TPoint2d = object
-    x, y: int
-
-  TPoint3d = object of TPoint2d
-    z: int # added a field
-
-proc getPoint( p: var TPoint2d) =
-  {.breakpoint.}
-  writeln(stdout, p.x)
-
-var
-  p: TPoint3d
-
-TPoint2d(p).x = 34
-p.y = 98
-p.z = 343
-
-getPoint(p)
2'>102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155