Skip to content

Commit 44c8948

Browse files
committed
Fix compilation after rebabse and refactor
1 parent 150ef0a commit 44c8948

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
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

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ object Errors {
6666
def show(using Context): String =
6767
"Access non-initialized field " + field.name.show + "."
6868

69-
override def report(using Context): Unit = report.warning(show + stacktrace, field.sourcePos)
69+
override def issue(using Context): Unit = report.warning(show + stacktrace, field.sourcePos)
7070
}
7171

7272
/** Promote `this` under initialization to fully-initialized */

0 commit comments

Comments
 (0)