From ed128df796ce364097865a56865b0a42fa4c1c22 Mon Sep 17 00:00:00 2001 From: Ondrej Lhotak Date: Sat, 13 Dec 2014 21:50:11 +0100 Subject: fix dealias to handle AnnotatedTypes transparently --- src/dotty/tools/dotc/core/Types.scala | 2 ++ 1 file changed, 2 insertions(+) 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 } -- cgit v1.2.3