diff options
author | Paul Phillips <paulp@improving.org> | 2012-10-06 14:22:19 -0700 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2012-10-06 14:24:11 -0700 |
commit | 153ccb4757718cceb219988f30381f73362e6075 (patch) | |
tree | 66d48ce4cb2d99d8b9820022321894fa21e6f2d5 /src/reflect | |
parent | ff9f60f420c090b6716c927ab0359b082f2299de (diff) | |
download | scala-153ccb4757718cceb219988f30381f73362e6075.tar.gz scala-153ccb4757718cceb219988f30381f73362e6075.tar.bz2 scala-153ccb4757718cceb219988f30381f73362e6075.zip |
Incorporated pull request feedback.
Diffstat (limited to 'src/reflect')
-rw-r--r-- | src/reflect/scala/reflect/internal/Definitions.scala | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/reflect/scala/reflect/internal/Definitions.scala b/src/reflect/scala/reflect/internal/Definitions.scala index 8865c762c4..3efa2c2bb0 100644 --- a/src/reflect/scala/reflect/internal/Definitions.scala +++ b/src/reflect/scala/reflect/internal/Definitions.scala @@ -669,6 +669,11 @@ trait Definitions extends api.StandardDefinitions { case _ => Nil } + def dropNullaryMethod(tp: Type) = tp match { + case NullaryMethodType(restpe) => restpe + case _ => tp + } + def unapplyUnwrap(tpe:Type) = tpe.finalResultType.normalize match { case RefinedType(p :: _, _) => p.normalize case tp => tp |