Class or primitive expected in cast |
|
It is not permitted to cast to a column type, only to classes or primitives.
Example error and correction
predicate p(Callable c, string x) { (@method)c and (x="method") }
There is no point in casting to a column type, it just amounts to a test
whether the argument has that type. Each column type has a predicate
of the same name for doing just that. So the above example is
corrected like so:
predicate p(Callable c, string x) { @method(c) and (x="method") }
|