diff options
Diffstat (limited to 'tests/tobject2.nim')
-rwxr-xr-x | tests/tobject2.nim | 21 |
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) |