We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 89dd6f5 commit f76d1b5Copy full SHA for f76d1b5
compiler/src/dotty/tools/dotc/typer/Dynamic.scala
@@ -177,11 +177,11 @@ trait Dynamic {
177
* It's an error if U is neither a value nor a method type, or a dependent method
178
* type
179
*/
180
- def handleStructural(tree: Tree)(using Context): Tree = {
+ def handleStructural(tree: Tree)(using Context) = {
181
val fun @ Select(qual, name) = funPart(tree): @unchecked
182
val vargss = termArgss(tree)
183
184
- def handleRepeated(base: Tree, possiblyCurried: List[List[Tree]]) =
+ def handleRepeated(base: untpd.Tree, possiblyCurried: List[List[Tree]]) =
185
possiblyCurried.map { args =>
186
val isRepeated = args.exists(_.tpe.widen.isRepeatedParam)
187
if isRepeated && qual.tpe <:< defn.ReflectSelectableTypeRef then
0 commit comments