Cannot use local functions in @verify
Closed this issue · 1 comments
mitchgrout commented
At the moment, the following causes a segfault:
bool myLocalFunc(int i) { return i > 0; }
struct Foo
{
@verify!(myLocalFunc) int i;
}
cast(void) ["--i", "1"].parseOpts!Foo;
mitchgrout commented
Non-problem; solved by making myLocalFunc
static.