aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/core/Types.scala
diff options
context:
space:
mode:
authorOndrej Lhotak <olhotak@uwaterloo.ca>2014-12-13 21:49:32 +0100
committerOndrej Lhotak <olhotak@uwaterloo.ca>2014-12-13 21:52:43 +0100
commit81a7e9037c8f70dbdf3e75c226bfee133b3300c9 (patch)
treecba8dcb7cb061608ccf03d8149becb774c3c5720 /src/dotty/tools/dotc/core/Types.scala
parente7a4197cfb7b622893fa0dc99f42824522d89ca1 (diff)
downloaddotty-81a7e9037c8f70dbdf3e75c226bfee133b3300c9.tar.gz
dotty-81a7e9037c8f70dbdf3e75c226bfee133b3300c9.tar.bz2
dotty-81a7e9037c8f70dbdf3e75c226bfee133b3300c9.zip
fix stripTypeVar to handle AnnotatedType transparently
Diffstat (limited to 'src/dotty/tools/dotc/core/Types.scala')
-rw-r--r--src/dotty/tools/dotc/core/Types.scala2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/dotty/tools/dotc/core/Types.scala b/src/dotty/tools/dotc/core/Types.scala
index 987014ff4..58462cc05 100644
--- a/src/dotty/tools/dotc/core/Types.scala
+++ b/src/dotty/tools/dotc/core/Types.scala
@@ -2502,6 +2502,8 @@ object Types {
def derivedAnnotatedType(annot: Annotation, tpe: Type) =
if ((annot eq this.annot) && (tpe eq this.tpe)) this
else AnnotatedType(annot, tpe)
+
+ override def stripTypeVar(implicit ctx: Context): Type = tpe.stripTypeVar
}
object AnnotatedType {