aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/typer/Inferencing.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2014-02-20 09:50:07 +0100
committerMartin Odersky <odersky@gmail.com>2014-02-21 18:42:50 +0100
commit84c01ff493b81c0097d1707f64622ade028e53aa (patch)
treef08e31e36d50c41deec70c2b02285d8979acf5ee /src/dotty/tools/dotc/typer/Inferencing.scala
parent889bca2de4678194ef28e24dc3513e94b5363616 (diff)
downloaddotty-84c01ff493b81c0097d1707f64622ade028e53aa.tar.gz
dotty-84c01ff493b81c0097d1707f64622ade028e53aa.tar.bz2
dotty-84c01ff493b81c0097d1707f64622ade028e53aa.zip
Reverted: Avoid using TypeBounds in alias refinements.
The idea is to use the alias itself. This cuts down on # of typebounds created and makes operations on refined infos and applied types more direct. (reverted from commit 81f31f9b71bc4466d3f04f5ce28ef94051688ecd)
Diffstat (limited to 'src/dotty/tools/dotc/typer/Inferencing.scala')
-rw-r--r--src/dotty/tools/dotc/typer/Inferencing.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/typer/Inferencing.scala b/src/dotty/tools/dotc/typer/Inferencing.scala
index 2ca0313d1..c9319de1f 100644
--- a/src/dotty/tools/dotc/typer/Inferencing.scala
+++ b/src/dotty/tools/dotc/typer/Inferencing.scala
@@ -555,7 +555,7 @@ object Inferencing {
case _: ThisType | _: BoundType | NoPrefix => // default case, inlined for speed
tp
case tp: RefinedType => // default case, inlined for speed
- tp.derivedRefinedType(wildApprox(tp.parent, theMap), tp.refinedName, wildApprox(tp.compactInfo, theMap))
+ tp.derivedRefinedType(wildApprox(tp.parent, theMap), tp.refinedName, wildApprox(tp.refinedInfo, theMap))
case _ =>
(if (theMap != null) theMap else new WildApproxMap).mapOver(tp)
}