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 bb6a6cb commit 1d26443Copy full SHA for 1d26443
compiler/src/dotty/tools/dotc/core/TypeApplications.scala
@@ -461,7 +461,7 @@ class TypeApplications(val self: Type) extends AnyVal {
461
* otherwise return Nil.
462
* Existential types in arguments are returned as TypeBounds instances.
463
*/
464
- final def argInfos(implicit ctx: Context): List[Type] = self match {
+ final def argInfos(implicit ctx: Context): List[Type] = self.stripTypeVar.stripAnnots match {
465
case AppliedType(tycon, args) => args
466
case _ => Nil
467
}
tests/pos/i5188.scala
@@ -0,0 +1,4 @@
1
+object Test {
2
+ inline def sum(inline args: Int*): Int = 0
3
+ sum(1, 2, 3)
4
+}
0 commit comments