From 75da0358fd7866f3dccdfcf4fbeae9af8ccc69f3 Mon Sep 17 00:00:00 2001 From: Nicolas Stucki Date: Mon, 30 May 2016 09:20:21 +0200 Subject: Fix #657: Add scala.Dynamic support. --- src/dotty/tools/dotc/typer/ProtoTypes.scala | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/dotty/tools/dotc/typer/ProtoTypes.scala') diff --git a/src/dotty/tools/dotc/typer/ProtoTypes.scala b/src/dotty/tools/dotc/typer/ProtoTypes.scala index 740258821..622e3b9d8 100644 --- a/src/dotty/tools/dotc/typer/ProtoTypes.scala +++ b/src/dotty/tools/dotc/typer/ProtoTypes.scala @@ -430,6 +430,8 @@ object ProtoTypes { (if (theMap != null) theMap else new WildApproxMap).mapOver(tp) } + @sharable object AssignProto extends UncachedGroundType with MatchAlways + private[ProtoTypes] class WildApproxMap(implicit ctx: Context) extends TypeMap { def apply(tp: Type) = wildApprox(tp, this) } -- cgit v1.2.3