@PDEF struct Test(string foo)
{
@PDEF string a = "hello";
@PDEF Choice choice = Choice.hippy;
}
A pdef there doesn't work. But you can't declare it in the alias either. Eg
alias TestA=@PDEF Test!"1";
alias TestB=@PDEF Test!"2";
So you can always wrap the types manually using PyD. But some doc/enhancement might be useful.