diff options
author | Martin Odersky <odersky@gmail.com> | 2015-11-08 10:33:58 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2015-11-09 15:45:40 +0100 |
commit | 4f01f62ac216fa9034d343828aa6f4be626d9b36 (patch) | |
tree | 9a0dbba0554183199aa3f1389e7e166851073bb8 /src/dotty/tools/dotc/ast/TreeInfo.scala | |
parent | 2d7a05fa46016ea54e10a80735e04b33fd0938d1 (diff) | |
download | dotty-4f01f62ac216fa9034d343828aa6f4be626d9b36.tar.gz dotty-4f01f62ac216fa9034d343828aa6f4be626d9b36.tar.bz2 dotty-4f01f62ac216fa9034d343828aa6f4be626d9b36.zip |
Shorten ..Class.typeRef to ..Type
Since we now have two forms of (almost) everything in Definitions,
might as well profit from it.
Diffstat (limited to 'src/dotty/tools/dotc/ast/TreeInfo.scala')
-rw-r--r-- | src/dotty/tools/dotc/ast/TreeInfo.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/ast/TreeInfo.scala b/src/dotty/tools/dotc/ast/TreeInfo.scala index 1266ebbd9..2b0f0aee3 100644 --- a/src/dotty/tools/dotc/ast/TreeInfo.scala +++ b/src/dotty/tools/dotc/ast/TreeInfo.scala @@ -230,7 +230,7 @@ trait TreeInfo[T >: Untyped <: Type] { self: Trees.Instance[T] => /** Does this CaseDef catch Throwable? */ def catchesThrowable(cdef: CaseDef)(implicit ctx: Context) = - catchesAllOf(cdef, defn.ThrowableClass.typeRef) + catchesAllOf(cdef, defn.ThrowableType) /** Does this CaseDef catch everything of a certain Type? */ def catchesAllOf(cdef: CaseDef, threshold: Type)(implicit ctx: Context) = |