Skip to content

Commit da2f05b

Browse files
Aggelos Biboudisnicolasstucki
Aggelos Biboudis
andauthored
Apply suggestions from code review
Co-Authored-By: Nicolas Stucki <[email protected]>
1 parent 7992f6f commit da2f05b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

compiler/src/dotty/tools/dotc/tastyreflect/ReflectionCompilerInterface.scala

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1269,7 +1269,11 @@ class ReflectionCompilerInterface(val rootContext: core.Contexts.Context) extend
12691269
// fixme: support type refinements (type vs term)
12701270
// examine info maybe (TypeOrBounds are used for refinements)
12711271
// check aliasing of refinement
1272-
Types.RefinedType(parent, name.toTermName, info)
1272+
val name1 =
1273+
info match
1274+
case _: TypeBounds => name.toTypeName
1275+
case _ => name.toTermName
1276+
Types.RefinedType(parent, name1, info)
12731277
}
12741278

12751279
def Refinement_parent(self: Refinement)(given Context): Type = self.parent
@@ -2003,4 +2007,3 @@ class ReflectionCompilerInterface(val rootContext: core.Contexts.Context) extend
20032007

20042008
private def compilerId: Int = rootContext.outersIterator.toList.last.hashCode()
20052009
}
2006-

0 commit comments

Comments
 (0)