File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -112,8 +112,8 @@ class PostTyper extends MacroTransform with IdentityDenotTransformer { thisTran
112
112
// If `args` is a list of named argiments, return corresponding type parameters,
113
113
// or abstract types otherwise return type parameters unchanged
114
114
def matchNamed (tparams : List [TypeSymbol ], args : List [Tree ]): List [Symbol ] = args match {
115
- case (arg : NamedArg ) :: _ =>
116
- for (NamedArg (name, arg ) <- args) yield tycon.tpe.member(name).symbol
115
+ case (_ : NamedArg ) :: _ =>
116
+ for (NamedArg (name, _ ) <- args) yield tycon.tpe.member(name).symbol
117
117
case _ =>
118
118
tparams
119
119
}
Original file line number Diff line number Diff line change @@ -375,6 +375,7 @@ trait TypeAssigner {
375
375
val tparams = tycon.tpe.typeParams
376
376
def refineNamed (tycon : Type , arg : Tree ) = arg match {
377
377
case ast.Trees .NamedArg (name, argtpt) =>
378
+ // Dotty deviation: importing ast.Trees._ and matching on NamedArg gives a cyclic ref error
378
379
val tparam = tparams.find(_.name == name) match {
379
380
case Some (tparam) => tparam
380
381
case none =>
You can’t perform that action at this time.
0 commit comments