Randall R Schulz
2009-03-23 14:08:07 UTC
Hi,
I'm trying to understand and resolve these errors:
/dar/rho/src/rho/alg/Traversals.scala
Error:Error:line (324)error: missing parameter type for expanded function
((x$12) => ExpressionCursor(expr, next.node.pos.ahead(), x$12, next.node.pol)) _, next.node.pol)))
The code is:
traversal ++ connected.map(TraversalAction(ahead, ExpressionCursor(expr, next.node.pos.ahead(), _, next.node.pol)))
A similar fragment:
traversal ++ next.at.asInstanceOf[FunctionTerm].args.map(ExpressionCursor(expr, next.pos.ahead(), _, next.pol))
Does not prodduce this error.
TraversalAction and ExpressionCursor are a case-class constructors.
I gather the problem has to do with the anonymous function parameter
being nested inside the second constructor the erroneous case, but
don't know how to resolve it.
Randall Schulz
I'm trying to understand and resolve these errors:
/dar/rho/src/rho/alg/Traversals.scala
Error:Error:line (324)error: missing parameter type for expanded function
((x$12) => ExpressionCursor(expr, next.node.pos.ahead(), x$12, next.node.pol)) _, next.node.pol)))
The code is:
traversal ++ connected.map(TraversalAction(ahead, ExpressionCursor(expr, next.node.pos.ahead(), _, next.node.pol)))
A similar fragment:
traversal ++ next.at.asInstanceOf[FunctionTerm].args.map(ExpressionCursor(expr, next.pos.ahead(), _, next.pol))
Does not prodduce this error.
TraversalAction and ExpressionCursor are a case-class constructors.
I gather the problem has to do with the anonymous function parameter
being nested inside the second constructor the erroneous case, but
don't know how to resolve it.
Randall Schulz