Skip to content

Commit 66a2cbf

Browse files
Add a guard to check that the names matches the idents size
Co-authored-by: Nicolas Stucki <nicolas.stucki@gmail.com>
1 parent 95c03a6 commit 66a2cbf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/tastyreflect/ReflectionCompilerInterface.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1791,7 +1791,7 @@ class ReflectionCompilerInterface(val rootContext: core.Contexts.Context) extend
17911791
for case deff @ DefDef(name, _, _, _, tree) <- body
17921792
if name.toString.startsWith("$lessinit$greater$default")
17931793
yield Ref_apply(deff.symbol)
1794-
1794+
assert(names.size == idents.size)
17951795
names.zip(idents).toMap
17961796
end Symbol_defaultParams
17971797

0 commit comments

Comments
 (0)