aboutsummaryrefslogtreecommitdiff
path: root/compiler/src/dotty/tools/dotc/ast
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2016-12-03 12:53:10 +0100
committerMartin Odersky <odersky@gmail.com>2016-12-17 18:34:27 +0100
commitfd2c24c3159cefa583889a176f31d1e2325fe7e6 (patch)
tree2291e9ecee03b130f50e3c3a4d9660d95bca2723 /compiler/src/dotty/tools/dotc/ast
parent8450556080c5fd8f8553bec4f39ea08fbb05c9d2 (diff)
downloaddotty-fd2c24c3159cefa583889a176f31d1e2325fe7e6.tar.gz
dotty-fd2c24c3159cefa583889a176f31d1e2325fe7e6.tar.bz2
dotty-fd2c24c3159cefa583889a176f31d1e2325fe7e6.zip
Add syntax for implicit functions
Diffstat (limited to 'compiler/src/dotty/tools/dotc/ast')
-rw-r--r--compiler/src/dotty/tools/dotc/ast/untpd.scala4
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/src/dotty/tools/dotc/ast/untpd.scala b/compiler/src/dotty/tools/dotc/ast/untpd.scala
index 6c5210287..25b69b1f5 100644
--- a/compiler/src/dotty/tools/dotc/ast/untpd.scala
+++ b/compiler/src/dotty/tools/dotc/ast/untpd.scala
@@ -53,6 +53,10 @@ object untpd extends Trees.Instance[Untyped] with UntypedTreeInfo {
override def isTerm = body.isTerm
override def isType = body.isType
}
+
+ /** An implicit function type */
+ class ImplicitFunction(args: List[Tree], body: Tree) extends Function(args, body)
+
/** A function created from a wildcard expression
* @param placeHolderParams a list of definitions of synthetic parameters
* @param body the function body where wildcards are replaced by