Open testforstephen opened 2 years ago
@stephan-herrmann Any thoughts on this?
Sorry this escaped my attention.
At first glance I like the result from ecj better, because:
<R>
to String
, which looks smart to me.builderOfStage(..)
is resolved as a standalone expression there is no target type that could guide inference to infer Object
instead of String
.withAsync(..)
cannot change the inferred type argument.
In javac, both "builder1" and "builder2" compile fine. In ecj, "builder1" passed, but "builder2" failed with error message "Type mismatch: cannot convert from Builder\<String> to Builder\<Object>".