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 2de84b0 commit 21b1aaaCopy full SHA for 21b1aaa
compiler/src/dotty/tools/dotc/ast/Desugar.scala
@@ -1013,8 +1013,7 @@ object desugar {
1013
val arity = ts.length
1014
assert(arity <= Definitions.MaxTupleArity)
1015
def tupleTypeRef = defn.TupleType(arity)
1016
- if (arity == 1) ts.head
1017
- else if (arity == 0)
+ if (arity == 0)
1018
if (ctx.mode is Mode.Type) TypeTree(defn.UnitType) else unitLiteral
1019
else if (ctx.mode is Mode.Type) AppliedTypeTree(ref(tupleTypeRef), ts)
1020
else Apply(ref(tupleTypeRef.classSymbol.companionModule.termRef), ts)
0 commit comments