aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/transform/PostTyper.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2016-06-30 18:42:29 +0200
committerMartin Odersky <odersky@gmail.com>2016-07-11 13:35:07 +0200
commit34a068b7f6039637d6f1330e3d071f5bf75e9cec (patch)
treeef7b435c50e4110971721836ebdaf9e0d07b4328 /src/dotty/tools/dotc/transform/PostTyper.scala
parent32c0135b59fe02a70ed0b1a693251a0028d479c8 (diff)
downloaddotty-34a068b7f6039637d6f1330e3d071f5bf75e9cec.tar.gz
dotty-34a068b7f6039637d6f1330e3d071f5bf75e9cec.tar.bz2
dotty-34a068b7f6039637d6f1330e3d071f5bf75e9cec.zip
Drop Config.checkKinds
Allows us to drop also the involved knownHK method. Lots of other cleanups.
Diffstat (limited to 'src/dotty/tools/dotc/transform/PostTyper.scala')
-rw-r--r--src/dotty/tools/dotc/transform/PostTyper.scala3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/transform/PostTyper.scala b/src/dotty/tools/dotc/transform/PostTyper.scala
index 057026a67..b71284049 100644
--- a/src/dotty/tools/dotc/transform/PostTyper.scala
+++ b/src/dotty/tools/dotc/transform/PostTyper.scala
@@ -13,6 +13,7 @@ import Types._, Contexts._, Constants._, Names._, NameOps._, Flags._, DenotTrans
import SymDenotations._, Symbols._, StdNames._, Annotations._, Trees._, Scopes._, Denotations._
import util.Positions._
import Decorators._
+import config.Printers._
import Symbols._, TypeUtils._
/** A macro transform that runs immediately after typer and that performs the following functions:
@@ -121,7 +122,7 @@ class PostTyper extends MacroTransform with IdentityDenotTransformer { thisTran
*/
private def fixSignature[T <: Tree](tree: T)(implicit ctx: Context): T = tree.tpe match {
case tpe: TermRefWithSignature if tpe.signature.isUnderDefined =>
- println(i"fixing $tree with type ${tree.tpe.widen.toString} with sig ${tpe.signature} to ${tpe.widen.signature}")
+ typr.println(i"fixing $tree with type ${tree.tpe.widen.toString} with sig ${tpe.signature} to ${tpe.widen.signature}")
tree.withType(TermRef.withSig(tpe.prefix, tpe.name, tpe.widen.signature)).asInstanceOf[T]
case _ => tree
}