aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/printing/RefinedPrinter.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2013-10-15 14:14:18 +0200
committerMartin Odersky <odersky@gmail.com>2013-10-15 14:14:18 +0200
commite1e0822c75fc03aabd25a448af228012e20cb4d6 (patch)
tree1a438df5ae0a8dc4429411f133f13cb7f75be659 /src/dotty/tools/dotc/printing/RefinedPrinter.scala
parent77f62c9faa4b03b6deb6d1e95afe9d88fb4e02c7 (diff)
downloaddotty-e1e0822c75fc03aabd25a448af228012e20cb4d6.tar.gz
dotty-e1e0822c75fc03aabd25a448af228012e20cb4d6.tar.bz2
dotty-e1e0822c75fc03aabd25a448af228012e20cb4d6.zip
Implemented refined prinitng of function prototypes
Diffstat (limited to 'src/dotty/tools/dotc/printing/RefinedPrinter.scala')
-rw-r--r--src/dotty/tools/dotc/printing/RefinedPrinter.scala2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/dotty/tools/dotc/printing/RefinedPrinter.scala b/src/dotty/tools/dotc/printing/RefinedPrinter.scala
index 46a272c70..6d6442d2f 100644
--- a/src/dotty/tools/dotc/printing/RefinedPrinter.scala
+++ b/src/dotty/tools/dotc/printing/RefinedPrinter.scala
@@ -104,6 +104,8 @@ class RefinedPrinter(_ctx: Context) extends PlainPrinter(_ctx) {
case _ => nameString(tp.symbol)
}
}
+ case typer.Inferencing.FunProto(args, resultType, _) =>
+ "funproto(" ~ toTextGlobal(args, ", ") ~ "):" ~ toText(resultType)
case _ =>
}
super.toText(tp)