Skip to content

Commit bd5955d

Browse files
committed
Fix compilation after rebabse and refactor
1 parent 1a53531 commit bd5955d

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

compiler/src/dotty/tools/dotc/transform/init/Effects.scala

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,25 +39,20 @@ object Effects {
3939
* - the selection chain on a potential is too long
4040
*/
4141
case class Promote(potential: Potential)(val source: Tree) extends Effect {
42-
def size: Int = potential.size
43-
def show(using Context): String =
44-
potential.show + ""
42+
def show(using Context): String = potential.show + ""
4543
}
4644

4745
/** Field access, `a.f` */
4846
case class FieldAccess(potential: Potential, field: Symbol)(val source: Tree) extends Effect {
4947
assert(field != NoSymbol)
5048

51-
def size: Int = potential.size
52-
def show(using Context): String =
53-
potential.show + "." + field.name.show + "!"
49+
def show(using Context): String = potential.show + "." + field.name.show + "!"
5450
}
5551

5652
/** Method call, `a.m()` */
5753
case class MethodCall(potential: Potential, method: Symbol)(val source: Tree) extends Effect {
5854
assert(method != NoSymbol)
5955

60-
def size: Int = potential.size
6156
def show(using Context): String = potential.show + "." + method.name.show + "!"
6257
}
6358

0 commit comments

Comments
 (0)