diff options
author | Ondrej Lhotak <olhotak@uwaterloo.ca> | 2014-12-13 21:49:32 +0100 |
---|---|---|
committer | Ondrej Lhotak <olhotak@uwaterloo.ca> | 2014-12-13 21:52:43 +0100 |
commit | 81a7e9037c8f70dbdf3e75c226bfee133b3300c9 (patch) | |
tree | cba8dcb7cb061608ccf03d8149becb774c3c5720 /src | |
parent | e7a4197cfb7b622893fa0dc99f42824522d89ca1 (diff) | |
download | dotty-81a7e9037c8f70dbdf3e75c226bfee133b3300c9.tar.gz dotty-81a7e9037c8f70dbdf3e75c226bfee133b3300c9.tar.bz2 dotty-81a7e9037c8f70dbdf3e75c226bfee133b3300c9.zip |
fix stripTypeVar to handle AnnotatedType transparently
Diffstat (limited to 'src')
-rw-r--r-- | src/dotty/tools/dotc/core/Types.scala | 2 |
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 { |