This code works fine in 1.9.0-alpha12:
But if we factor the fspec out into its own keyword:
The check fails with the exception:
The check function doesn't seem to be resolving ::inc, when presumably it should.
this should be fixed in fspec, not its use by test
fspec is not the problem as far as I can tell - it is already making specs of its args.
The problem is that f is registered as an alias of ::inc. I don't think you want to resolve that at registration time (as ::inc might not exist yet).
The problem as far as I understand it is that at the time of use (by check), f is not resolved to it's final spec and that's what the patch does.
Added new patch that uses `spec` instead of private `specize` function.