-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
correctly type Expr.ofTupleFromSeq for arity > 22 #17261
Conversation
53dfd1e
to
49d9901
Compare
Also seeing the same failure here: |
Looks like a semantic merge conflict on the Wunused merges? @szymon-rd wdyt? |
Ah yeah, #17263 |
@bishabosha also take into account #17257 (comment) |
@nicolasstucki I added a test for |
could this be backported for 3.3.1 ? |
private def tupleTypeFromSeq(seq: Seq[Expr[Any]])(using Quotes): quotes.reflect.TypeRepr = | ||
import quotes.reflect.* | ||
val consRef = Symbol.classSymbol("scala.*:").typeRef | ||
seq.foldLeft(TypeRepr.of[EmptyTuple]) { (ts, expr) => |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
identified that for all
Seq
with arity <= 22, the result had the most precise type possible, for > 22 then it was onlyTuple
fixes #17257