You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The new behaviour might have become present by the stabilization of named tuples. Previously named tuples syntax was not tried without an explicit experimental flag enabled.
Compiler version
Last good release: 3.6.0-RC1-bin-20241003-a672e05-NIGHTLY
First bad release: 3.6.0-RC1-bin-20241005-6fa81cf-NIGHTLY
--Error:/Users/wmazur/projects/sandbox/test.scala:11:44----------------------11|valfails= field `toGraphQL` (queryName =Some("GetCharacter"))
|^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^|method toGraphQL in traitSelectionBuilder: (queryName: Option[String]):GraphQLRequest does not have a parameter equeryName
Expectation
The compiler should interpret infix apply as list of arguments instead of named tuple.
The text was updated successfully, but these errors were encountered:
The compiler should interpret infix apply as list of arguments instead of named tuple.
No, it should not. Argument syntax should be tied to regular method calls, An infix operator takes two expressions; there is no argument list in the traditional sense. Another case where this matters is
a *: (b, c)
This should really preprend a to the tuple (b, c). Right now it's a type error because the right operand is treated like an argument list. We want to get away from that. Named tuples are just one bit where this problem manifests itself.
Based on OpenCB failure for
ghostdogpr/caliban
- build logsAffects also:
openmole/container
- build-logsscala-stm/scala-stm
- build logsshopstic/caliban
(fork of project above) - build logstarao/record4s
- builds logstpolecat/atto
- build logsalgolia/algoliasearch-client-scala
- build logsThe new behaviour might have become present by the stabilization of named tuples. Previously named tuples syntax was not tried without an explicit experimental flag enabled.
Compiler version
Last good release: 3.6.0-RC1-bin-20241003-a672e05-NIGHTLY
First bad release: 3.6.0-RC1-bin-20241005-6fa81cf-NIGHTLY
Bisect points to 87cdbc8
Minimized code
Output
Expectation
The compiler should interpret infix apply as list of arguments instead of named tuple.
The text was updated successfully, but these errors were encountered: