From 1c900a35155c0b92fd3b96794ffb55c0b0c03d9c Mon Sep 17 00:00:00 2001 From: Aleksander Boruch-Gruszecki Date: Thu, 13 Apr 2017 22:17:43 +0200 Subject: Recurse into refined type when exposing members --- compiler/src/dotty/tools/dotc/transform/patmat/Space.scala | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'compiler/src/dotty/tools/dotc/transform/patmat/Space.scala') diff --git a/compiler/src/dotty/tools/dotc/transform/patmat/Space.scala b/compiler/src/dotty/tools/dotc/transform/patmat/Space.scala index fe2983896..53518ec9c 100644 --- a/compiler/src/dotty/tools/dotc/transform/patmat/Space.scala +++ b/compiler/src/dotty/tools/dotc/transform/patmat/Space.scala @@ -537,7 +537,12 @@ class SpaceEngine(implicit ctx: Context) extends SpaceLogic { tp.refinedName, tpb.derivedTypeBounds(follow(lo, false), follow(hi, true)) ) - case tp => tp + case _ => + tp.derivedRefinedType( + expose(tp.parent), + tp.refinedName, + tp.refinedInfo + ) } case _ => tp } -- cgit v1.2.3