Skip to content

Commit 840dbb2

Browse files
committed
Refactor SymUtils
- Move to core package. It was for historical reasons in transform because it was originally intended as a collection of type operations that were were useful in transform phases. But it's now used from everywhere. - Make a base class of Types, so that it does not need to be imported explicitly. Also: move isDerivedValueClass to SymUtils [Cherry-picked 125321e][modified]
1 parent dbdaf17 commit 840dbb2

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

compiler/src/dotty/tools/dotc/core/SymUtils.scala

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -377,8 +377,6 @@ class SymUtils:
377377
self.hasAnnotation(defn.ExperimentalAnnot)
378378
|| isDefaultArgumentOfExperimentalMethod
379379
|| (!self.is(Package) && self.owner.isInExperimentalScope)
380-
|| self.topLevelClass.ownersIterator.exists(p =>
381-
p.is(Package) && p.owner.isRoot && p.name == tpnme.dotty)
382380

383381
/** The declared self type of this class, as seen from `site`, stripping
384382
* all refinements for opaque types.

0 commit comments

Comments
 (0)