Skip to content

Commit 9bc9578

Browse files
committed
Address review comments of #693
1 parent 10ea712 commit 9bc9578

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/dotty/tools/dotc/core/Symbols.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ object Symbols {
504504
def showName(implicit ctx: Context): String = ctx.nameString(this)
505505
def showFullName(implicit ctx: Context): String = ctx.fullNameString(this)
506506

507-
override def hashCode(): PhaseId = id
507+
override def hashCode() = id
508508
}
509509

510510
type TermSymbol = Symbol { type ThisName = TermName }

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class FunctionalInterfaces extends MiniPhaseTransform {
6464

6565
if (shouldSpecialize(m)) {
6666
val functionSymbol = tree.tpe.widenDealias.classSymbol
67-
val names = ctx.atPhase(ctx.erasurePhase.prev) {
67+
val names = ctx.atPhase(ctx.erasurePhase) {
6868
implicit ctx => functionSymbol.typeParams.map(_.name)
6969
}
7070
val interfaceName = (functionName ++ m.paramTypes.length.toString).specializedFor(m.paramTypes ::: m.resultType :: Nil, names, Nil, Nil)

0 commit comments

Comments
 (0)