flink-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Whitaker <andrew.whita...@braintreepayments.com>
Subject Compilation error with Scala case class with private constructor
Date Thu, 03 Mar 2016 20:06:43 GMT

I've run up against a compilation error involving a case class with a
private constructor:

could not find implicit value for evidence parameter of type
[error]       .fold(List[Try[Wrapper]](), new FoldFunction[Tuple2[Int,
Int], List[Try[Wrapper]]] {
[error]            ^
[error] one error found
[error] (compile:compileIncremental) Compilation failed

If I make the constructor public again, the error goes away. I've set up a
simple example that demonstrates the problem here:
I've read this article on Flink's website:
but I think my issue is slightly different.

I'm just trying to understand this behavior and if there's a way I can work
around it.


Andrew Whitaker | andrew.whitaker@braintreepayments.com

View raw message