aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc
diff options
context:
space:
mode:
authorDmitry Petrashko <dmitry.petrashko@gmail.com>2015-07-20 11:59:43 +0200
committerDmitry Petrashko <dmitry.petrashko@gmail.com>2015-07-20 11:59:43 +0200
commit9bc95782f628f26bec402173f34013fbeb49d2ca (patch)
treec2758a8af0fc7e490fc1ca1ef7b81b41ca95eb23 /src/dotty/tools/dotc
parent10ea7125998b0246e899706f407cc57719f37086 (diff)
downloaddotty-9bc95782f628f26bec402173f34013fbeb49d2ca.tar.gz
dotty-9bc95782f628f26bec402173f34013fbeb49d2ca.tar.bz2
dotty-9bc95782f628f26bec402173f34013fbeb49d2ca.zip
Address review comments of #693
Diffstat (limited to 'src/dotty/tools/dotc')
-rw-r--r--src/dotty/tools/dotc/core/Symbols.scala2
-rw-r--r--src/dotty/tools/dotc/transform/FunctionalInterfaces.scala2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/dotty/tools/dotc/core/Symbols.scala b/src/dotty/tools/dotc/core/Symbols.scala
index 7c48ca9c7..c295b667f 100644
--- a/src/dotty/tools/dotc/core/Symbols.scala
+++ b/src/dotty/tools/dotc/core/Symbols.scala
@@ -504,7 +504,7 @@ object Symbols {
def showName(implicit ctx: Context): String = ctx.nameString(this)
def showFullName(implicit ctx: Context): String = ctx.fullNameString(this)
- override def hashCode(): PhaseId = id
+ override def hashCode() = id
}
type TermSymbol = Symbol { type ThisName = TermName }
diff --git a/src/dotty/tools/dotc/transform/FunctionalInterfaces.scala b/src/dotty/tools/dotc/transform/FunctionalInterfaces.scala
index fe5acf3f0..5fd89314a 100644
--- a/src/dotty/tools/dotc/transform/FunctionalInterfaces.scala
+++ b/src/dotty/tools/dotc/transform/FunctionalInterfaces.scala
@@ -64,7 +64,7 @@ class FunctionalInterfaces extends MiniPhaseTransform {
if (shouldSpecialize(m)) {
val functionSymbol = tree.tpe.widenDealias.classSymbol
- val names = ctx.atPhase(ctx.erasurePhase.prev) {
+ val names = ctx.atPhase(ctx.erasurePhase) {
implicit ctx => functionSymbol.typeParams.map(_.name)
}
val interfaceName = (functionName ++ m.paramTypes.length.toString).specializedFor(m.paramTypes ::: m.resultType :: Nil, names, Nil, Nil)