What do you mean by 'it doesn't work'? What error do you see?
The auto-tester doesn't seem to choke on this: https://github.com/D-Programming-Language/phobos/blob/master/std/traits.d#L5988
It's been in there for a while.