fs2-grpc icon indicating copy to clipboard operation
fs2-grpc copied to clipboard

Support code gen using ? for wildcards

Open lacarvalho91 opened this issue 2 years ago • 1 comments

In Scala 3 it is possible to use _ for type lambda placeholders by setting the -Ykind-projector:underscores compiler flag. When this is enabled _ can no longer be used for wildcards, ? must be used instead. The code gen doesn't support this ATM so you end up with compiler errors from the generated code.

lacarvalho91 avatar Jun 22 '23 16:06 lacarvalho91

ScalaPB needs to support this as fs2-grpc piggy-backs on it. See https://github.com/scalapb/ScalaPB/issues/1316

Changing the code generator is doable, but until ScalaPB supports it we have to wait to implement it. I have a PoC that feeds the code generator with scala target version allowing it select different code paths depending on that value.

ahjohannessen avatar Jun 23 '23 13:06 ahjohannessen