File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
compiler/src/dotty/tools/dotc/tastyreflect Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -1269,7 +1269,11 @@ class ReflectionCompilerInterface(val rootContext: core.Contexts.Context) extend
1269
1269
// fixme: support type refinements (type vs term)
1270
1270
// examine info maybe (TypeOrBounds are used for refinements)
1271
1271
// 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)
1273
1277
}
1274
1278
1275
1279
def Refinement_parent (self : Refinement )(given Context ): Type = self.parent
@@ -2003,4 +2007,3 @@ class ReflectionCompilerInterface(val rootContext: core.Contexts.Context) extend
2003
2007
2004
2008
private def compilerId : Int = rootContext.outersIterator.toList.last.hashCode()
2005
2009
}
2006
-
You can’t perform that action at this time.
0 commit comments