Skip to content

Commit a00a242

Browse files
olhotaklrytz
andauthored
simplify assertion
Co-authored-by: Lukas Rytz <[email protected]>
1 parent 67fa551 commit a00a242

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/transform/UnrollDefinitions.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ class UnrollDefinitions extends MacroTransform, IdentityDenotTransformer {
8080
if indices.nonEmpty then
8181
// pre-validation should have occurred in posttyper
8282
assert(!annotated.isLocal, i"$annotated is local")
83-
assert(annotated.isEffectivelyFinal || annotated.isConstructor || annotated.owner.is(ModuleClass) || annotated.name.is(DefaultGetterName),
83+
assert(annotated.isEffectivelyFinal || annotated.name.is(DefaultGetterName),
8484
i"$annotated is not final&concrete, or a constructor")
8585
indices
8686
})

0 commit comments

Comments
 (0)