summary refs log tree commit diff stats
path: root/tests/compile/tobject2.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/compile/tobject2.nim')
-rw-r--r--tests/compile/tobject2.nim21
1 files changed, 0 insertions, 21 deletions
diff --git a/tests/compile/tobject2.nim b/tests/compile/tobject2.nim
deleted file mode 100644
index 0f1869695..000000000
--- a/tests/compile/tobject2.nim
+++ /dev/null
@@ -1,21 +0,0 @@
-# Tests the object implementation
-
-type
-  TPoint2d {.inheritable.} = 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)