diff options
author | Araq <rumpf_a@web.de> | 2012-06-21 18:51:19 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2012-06-21 18:51:19 +0200 |
commit | d1c84328a7ca460a002933720089eefca378a28c (patch) | |
tree | 62e04425c214f85fee8ee3fffe1cabb1d7cce6bd /tests/compile | |
parent | 26b64f9e4f25a5cbeaed9f8e97f9a6b243818fb9 (diff) | |
download | Nim-d1c84328a7ca460a002933720089eefca378a28c.tar.gz |
fixes #145
Diffstat (limited to 'tests/compile')
-rwxr-xr-x | tests/compile/tcodegenbug1.nim | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/compile/tcodegenbug1.nim b/tests/compile/tcodegenbug1.nim index 909101db1..7d0fc4ad5 100755 --- a/tests/compile/tcodegenbug1.nim +++ b/tests/compile/tcodegenbug1.nim @@ -53,3 +53,15 @@ proc `$`*(status: TStatusEnum): string = proc makeCommitPath*(platform, hash: string): string = return platform / "nimrod_" & hash.substr(0, 11) # 11 Chars. +type + TFlag = enum + A, B, C, D + + TFlags = set[TFlag] + + TObj = object + x: int + flags: TFlags + +# have a proc taking TFlags as param and returning object having TFlags field +proc foo(flags: TFlags): TObj = nil |