From d1c84328a7ca460a002933720089eefca378a28c Mon Sep 17 00:00:00 2001 From: Araq Date: Thu, 21 Jun 2012 18:51:19 +0200 Subject: fixes #145 --- tests/compile/tcodegenbug1.nim | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'tests/compile/tcodegenbug1.nim') 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 -- cgit 1.4.1-2-gfad0