File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
compiler/src/dotty/tools/dotc/typer Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -411,8 +411,8 @@ class Synthesizer(typer: Typer)(using @constructorOnly c: Context):
411
411
val elemLabels = accessors.map(acc => ConstantType (Constant (acc.name.toString)))
412
412
val elemsLabels = TypeOps .nestedPairs(elemLabels)
413
413
414
- val elemHasDefaults = accessors.map(acc =>
415
- ConstantType (Constant (cls.mirrorSupportsDefaultArguments && acc.is(HasDefault ))))
414
+ val supportsDefaults = cls.mirrorSupportsDefaultArguments
415
+ val elemHasDefaults = accessors.map(acc => ConstantType (Constant (supportsDefaults && acc.is(HasDefault ))))
416
416
val elemsHasDefaults = TypeOps .nestedPairs(elemHasDefaults)
417
417
418
418
val typeElems = tps.getOrElse(accessors.map(mirroredType.resultType.memberInfo(_).widenExpr))
You can’t perform that action at this time.
0 commit comments