Skip to content

Commit d0b4ac2

Browse files
liufengyuni10416
andauthored
Fix typo
Co-authored-by: 110416 <[email protected]>
1 parent c57e8eb commit d0b4ac2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/transform/init/Semantic.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -855,7 +855,7 @@ object Semantic:
855855
// init "fake" param fields for parameters of primary and secondary constructors
856856
def addParamsAsFields(args: List[Value], ref: Ref, ctorDef: DefDef) =
857857
val params = ctorDef.termParamss.flatten.map(_.symbol)
858-
assert(args.size == params.size, "arguments = " + args.size + ", params = " + params.size + ", ctro = " + ctor.show)
858+
assert(args.size == params.size, "arguments = " + args.size + ", params = " + params.size + ", ctor = " + ctor.show)
859859
for (param, value) <- params.zip(args) do
860860
ref.updateField(param, value)
861861
printer.println(param.show + " initialized with " + value)

0 commit comments

Comments
 (0)