mitchgrout/parseopts

Cannot use local functions in @verify

Closed this issue · 1 comments

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;

Non-problem; solved by making myLocalFunc static.