From a274f3bf5be3fc35f1538e5aab0e32fb9ed2ff82 Mon Sep 17 00:00:00 2001 From: Araq Date: Sat, 19 Nov 2011 15:45:51 +0100 Subject: got rid of 'accept' dir in the tests --- tests/accept/compile/tassign.nim | 31 ------------------------------- 1 file changed, 31 deletions(-) delete mode 100755 tests/accept/compile/tassign.nim (limited to 'tests/accept/compile/tassign.nim') diff --git a/tests/accept/compile/tassign.nim b/tests/accept/compile/tassign.nim deleted file mode 100755 index f51c20783..000000000 --- a/tests/accept/compile/tassign.nim +++ /dev/null @@ -1,31 +0,0 @@ -# Test the assignment operator for complex types which need RTTI - -type - TRec = object - x, y: int - s: string - seq: seq[string] - arr: seq[seq[array[0..3, string]]] - TRecSeq = seq[TRec] - -proc test() = - var - a, b: TRec - a.x = 1 - a.y = 2 - a.s = "Hallo!" - a.seq = @["abc", "def", "ghi", "jkl"] - a.arr = @[] - setLen(a.arr, 4) - a.arr[0] = @[] - a.arr[1] = @[] - - b = a # perform a deep copy here! - b.seq = @["xyz", "huch", "was", "soll"] - writeln(stdout, len(a.seq)) - writeln(stdout, a.seq[3]) - writeln(stdout, len(b.seq)) - writeln(stdout, b.seq[3]) - writeln(stdout, b.y) - -test() -- cgit 1.4.1-2-gfad0 ce219c62fa6b9298ed2a8cfc2406b'>refs log blame commit diff stats
path: root/doc/nimdoc.css
blob: 6154f0b2eb7ef1f75fc0c37bcb14d9765ff3fd4a (plain) (tree)