Skip to content

Commit 80ce589

Browse files
committed
Annotate ValDef package objects when using -experimental
1 parent f66f148 commit 80ce589

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

compiler/src/dotty/tools/dotc/typer/Checking.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -814,7 +814,6 @@ object Checking {
814814
case tpd.PackageDef(_, contents) => apply(x, contents)
815815
case typeDef @ tpd.TypeDef(_, temp: Template) if typeDef.symbol.isPackageObject =>
816816
apply(x, temp.body)
817-
case vdef: tpd.ValDef if vdef.symbol.isPackageObject => x // ValDef(new PackageObject)
818817
case mdef: tpd.MemberDef => addIfNotExperimental(mdef.symbol)
819818
case _ => x
820819
}

0 commit comments

Comments
 (0)