Predicate not allowed as an operand |
|
You cannot call a predicate as part of an expression.
Example error
from Element e select "name: " + e.hasName("X")
Here the call to hasName checks that e has a certain name, but that
name is not returned. The author probably meant:
from Element e where e.hasName("X") select "name: " + e.getName()
|