diff options
author | Martin Odersky <odersky@gmail.com> | 2017-02-21 17:50:05 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2017-02-21 17:51:09 +0100 |
commit | 6c164a5d906c657baa045c1d564c63273eb65f31 (patch) | |
tree | 178a8854a3b16a78fcf701c3ba8ca60b2669b7c1 /compiler/src/dotty/tools/dotc/ast/TreeInfo.scala | |
parent | f37b2a1dcddd2fdb8be0f703e3feb9e3c2630514 (diff) | |
download | dotty-6c164a5d906c657baa045c1d564c63273eb65f31.tar.gz dotty-6c164a5d906c657baa045c1d564c63273eb65f31.tar.bz2 dotty-6c164a5d906c657baa045c1d564c63273eb65f31.zip |
Extend argument pretyping to case-closures
Diffstat (limited to 'compiler/src/dotty/tools/dotc/ast/TreeInfo.scala')
-rw-r--r-- | compiler/src/dotty/tools/dotc/ast/TreeInfo.scala | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/src/dotty/tools/dotc/ast/TreeInfo.scala b/compiler/src/dotty/tools/dotc/ast/TreeInfo.scala index bcda4b92f..e48b1039b 100644 --- a/compiler/src/dotty/tools/dotc/ast/TreeInfo.scala +++ b/compiler/src/dotty/tools/dotc/ast/TreeInfo.scala @@ -287,6 +287,8 @@ trait UntypedTreeInfo extends TreeInfo[Untyped] { self: Trees.Instance[Untyped] case ValDef(_, tpt, _) => tpt.isEmpty case _ => false } + case Match(EmptyTree, _) => + true case _ => false } |