Skip to content

Commit ed856d5

Browse files
committed
Fix #5198: See through annotations and typevars when computing argument types.
1 parent bb6a6cb commit ed856d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/core/TypeApplications.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ class TypeApplications(val self: Type) extends AnyVal {
461461
* otherwise return Nil.
462462
* Existential types in arguments are returned as TypeBounds instances.
463463
*/
464-
final def argInfos(implicit ctx: Context): List[Type] = self match {
464+
final def argInfos(implicit ctx: Context): List[Type] = self.stripTypeVar.stripAnnots match {
465465
case AppliedType(tycon, args) => args
466466
case _ => Nil
467467
}

0 commit comments

Comments
 (0)