Skip to content

Commit a9363c3

Browse files
committed
remove extra check
1 parent 14fff9e commit a9363c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ class TypeUtils:
135135
case t => throw TypeError(em"Malformed NamedTuple: names must be string types, but $t was found.")
136136
val values = vals.tupleElementTypesUpTo(bound, normalize).getOrElse(Nil)
137137
names.zip(values)
138-
case tp: TypeProxy if tp.derivesFromNamedTuple =>
138+
case tp: TypeProxy =>
139139
tp.superType.namedTupleElementTypesUpTo(bound, normalize)
140140
case t =>
141141
Nil

0 commit comments

Comments
 (0)