diff options
author | Ondrej Lhotak <olhotak@uwaterloo.ca> | 2014-12-13 21:50:11 +0100 |
---|---|---|
committer | Ondrej Lhotak <olhotak@uwaterloo.ca> | 2014-12-13 21:52:43 +0100 |
commit | ed128df796ce364097865a56865b0a42fa4c1c22 (patch) | |
tree | f3417361a2874fd0dd7be5e7133c2208aa76fed3 /src | |
parent | 81a7e9037c8f70dbdf3e75c226bfee133b3300c9 (diff) | |
download | dotty-ed128df796ce364097865a56865b0a42fa4c1c22.tar.gz dotty-ed128df796ce364097865a56865b0a42fa4c1c22.tar.bz2 dotty-ed128df796ce364097865a56865b0a42fa4c1c22.zip |
fix dealias to handle AnnotatedTypes 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 58462cc05..5904160f5 100644 --- a/src/dotty/tools/dotc/core/Types.scala +++ b/src/dotty/tools/dotc/core/Types.scala @@ -673,6 +673,8 @@ object Types { if (tp1.exists) tp1.dealias else tp case tp: LazyRef => tp.ref.dealias + case tp: AnnotatedType => + tp.derivedAnnotatedType(tp.annot, tp.tpe.dealias) case tp => tp } |