@@ -283,7 +283,7 @@ trait Typers extends Adaptations with Tags with TypersTracking with PatternTyper
283
283
for (arg <- args) ar.subst traverse arg
284
284
}
285
285
286
- new ApplyToImplicitArgs (fun, args) setPos fun.pos
286
+ ApplyToImplicitArgs (fun, args). setPos( fun.pos)
287
287
case ErrorType =>
288
288
fun
289
289
case x => throw new MatchError (x)
@@ -5290,7 +5290,7 @@ trait Typers extends Adaptations with Tags with TypersTracking with PatternTyper
5290
5290
5291
5291
val tree1 : Tree = resolveClassTag(tree.pos, tagType) match {
5292
5292
case EmptyTree => MissingClassTagError (tree, tagType)
5293
- case tag => atPos(tree.pos)(new ApplyToImplicitArgs (Select (tag, nme.newArray), arg :: Nil ))
5293
+ case tag => atPos(tree.pos)(ApplyToImplicitArgs (Select (tag, nme.newArray), arg :: Nil ))
5294
5294
}
5295
5295
if (tree1.isErrorTyped) tree1 else typed(tree1, mode, pt)
5296
5296
case Apply (Select (fun, nme.apply), _) if treeInfo.isSuperConstrCall(fun) => TooManyArgumentListsForConstructor (tree) // scala/bug#5696
@@ -5347,7 +5347,7 @@ trait Typers extends Adaptations with Tags with TypersTracking with PatternTyper
5347
5347
mkAssign(Select (qq1, qual.symbol) setPos qual.pos)
5348
5348
}
5349
5349
5350
- case Apply (fn, extra) if qual.isInstanceOf [ ApplyToImplicitArgs ] =>
5350
+ case Apply (fn, extra) if qual.hasAttachment[ AppliedToImplicitArgs . type ] =>
5351
5351
fn match {
5352
5352
case treeInfo.Applied (Select (table, nme.apply), _, indices :: Nil ) =>
5353
5353
// table(indices)(implicits)
0 commit comments