diff options
author | Araq <rumpf_a@web.de> | 2012-06-22 17:47:03 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2012-06-22 17:47:03 +0200 |
commit | 48847b561688e1e8b0518141455bb8e957290a56 (patch) | |
tree | 4c51e3dbb080d2c48a80353504ea527263343e77 /tests/compile | |
parent | 09499b3822b30bd1b88addcb78344d458586001f (diff) | |
download | Nim-48847b561688e1e8b0518141455bb8e957290a56.tar.gz |
documented optional indentation for 'case' statements/'case' objects
Diffstat (limited to 'tests/compile')
-rwxr-xr-x | tests/compile/tobjects.nim | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/compile/tobjects.nim b/tests/compile/tobjects.nim index 8305e2838..40abae312 100755 --- a/tests/compile/tobjects.nim +++ b/tests/compile/tobjects.nim @@ -11,6 +11,16 @@ type d, e, f: char else: nil n: bool + +type + TMyObject = object of TObject + case disp: range[0..4]: + of 0: arg: char + of 1: s: string + else: wtf: bool + +var + x: TMyObject var global: int |