On 01/20/2013 06:59 AM, Timon Gehr wrote:
The somewhat related fact that static foreach over a sequence of enum values does not work is a compiler bug.
I guess this is your problem. (The original post was confusing because it contained pseudo code.)
To prevent confusion in the future, please always post the full code snippet.