File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
compiler/src/dotty/tools/dotc/transform Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -426,18 +426,19 @@ class TreeChecker extends Phase with SymTransformer {
426
426
checkOwner(impl)
427
427
checkOwner(impl.constr)
428
428
429
- def isNonMagicalMethod (x : Symbol ) =
430
- x.is(Method ) &&
429
+ def isNonMagicalMember (x : Symbol ) =
431
430
! x.isValueClassConvertMethod &&
432
- ! (x.is(Macro ) && ctx.phase.refChecked) &&
433
431
! x.name.is(DocArtifactName )
434
432
435
- val symbolsNotDefined = cls.classInfo.decls.toList.toSet.filter(isNonMagicalMethod) -- impl.body.map(_.symbol) - constr.symbol
433
+ val decls = cls.classInfo.decls.toList.toSet.filter(isNonMagicalMember)
434
+ val defined = impl.body.map(_.symbol)
435
+
436
+ val symbolsNotDefined = decls -- defined - constr.symbol
436
437
437
438
assert(symbolsNotDefined.isEmpty,
438
439
i " $cls tree does not define methods: ${symbolsNotDefined.toList}%, % \n " +
439
- i " expected: ${cls.classInfo. decls.toList.toSet.filter(isNonMagicalMethod)} %, % \n " +
440
- i " defined: ${impl.body.map(_.symbol)} %, % " )
440
+ i " expected: $decls%, % \n " +
441
+ i " defined: $defined %, % " )
441
442
442
443
super .typedClassDef(cdef, cls)
443
444
}
You can’t perform that action at this time.
0 commit comments