aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/core/Denotations.scala
diff options
context:
space:
mode:
Diffstat (limited to 'src/dotty/tools/dotc/core/Denotations.scala')
-rw-r--r--src/dotty/tools/dotc/core/Denotations.scala7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/dotty/tools/dotc/core/Denotations.scala b/src/dotty/tools/dotc/core/Denotations.scala
index f904f8d78..223079570 100644
--- a/src/dotty/tools/dotc/core/Denotations.scala
+++ b/src/dotty/tools/dotc/core/Denotations.scala
@@ -360,12 +360,7 @@ object Denotations {
override def signature(implicit ctx: Context): Signature = {
if (isType) Signature.NotAMethod
else info match {
- case tp: PolyType =>
- tp.resultType match {
- case mt: MethodType => mt.signature
- case tp => Signature(tp)
- }
- case mt: MethodType => mt.signature
+ case info: SignedType => info.signature
case _ => Signature.NotAMethod
}
}