Skip to content

Commit 36c229b

Browse files
committed
Add runsAfterGroupOf constraint to ExtensionMethods
1 parent ba9db4e commit 36c229b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/dotty/tools/dotc/transform/ExtensionMethods.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ class ExtensionMethods extends MiniPhaseTransform with DenotTransformer with Ful
3030
override def phaseName: String = "extmethods"
3131

3232
override def runsAfter: Set[Class[_ <: Phase]] = Set(classOf[ElimRepeated])
33+
34+
override def runsAfterGroupsOf = Set(classOf[FirstTransform]) // need companion objects to exist
3335

3436
override def transform(ref: SingleDenotation)(implicit ctx: Context): SingleDenotation = ref match {
3537
case ref: ClassDenotation if ref is ModuleClass =>

0 commit comments

Comments
 (0)