Skip to content

Commit 6023e47

Browse files
aherlihysmarter
andauthored
Update compiler/src/dotty/tools/dotc/core/TypeEval.scala
Co-authored-by: Guillaume Martres <[email protected]>
1 parent f058177 commit 6023e47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ object TypeEval:
115115
val fieldTypesOpt = tupleElementTypes(arg)
116116
fieldTypesOpt match
117117
case Some(fieldTypes) =>
118-
val fieldLabels = fieldTypes.zipWithIndex.map((_, i) => ConstantType(Constant(s"_$i")))
118+
val fieldLabels = (for i <- 1 to fieldTypes.length yield ConstantType(Constant(s"_$i")))).toList
119119
Some:
120120
defn.NamedTupleTypeRef.appliedTo:
121121
nestedPairs(fieldLabels) :: nestedPairs(fieldTypes) :: Nil

0 commit comments

Comments
 (0)