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 3bcdc34 commit 17f465fCopy full SHA for 17f465f
compiler/src/dotty/tools/dotc/typer/Applications.scala
@@ -118,7 +118,7 @@ object Applications {
118
}
119
120
def tupleComponentTypes(tp: Type)(using Context): List[Type] =
121
- tp.widenExpr.dealias match
+ tp.widenExpr.dealias.normalized match
122
case tp: AppliedType =>
123
if defn.isTupleClass(tp.tycon.typeSymbol) then
124
tp.args
tests/pos/i12127.scala
@@ -0,0 +1,5 @@
1
+val x = Option((1, 2, 3)).map(_ + _ + _)
2
+def foo[T <: Tuple : Tuple.IsMappedBy[Option]](t: T)(f: Tuple.InverseMap[T, Option] => Int) = null
3
+val y = foo(Option(1), Option(2), Option(3))(_ + _ + _)
4
+
5
+//val x: (Tuple3[Int, Int, Int] => Int) = _ + _ + _
0 commit comments