File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
compiler/src/dotty/tools/dotc/core Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -284,13 +284,13 @@ class TypeComparer(@constructorOnly initctx: Context) extends ConstraintHandling
284
284
given Context = ctx // optimization for performance
285
285
val info2 = tp2.info
286
286
287
- /** Does `tp2` have a singleton type or NoPrefix as a prefix?
287
+ /** Does `tp2` have a stable prefix or NoPrefix as a prefix?
288
288
* If that's not the case, following an alias via asSeenFrom could be lossy
289
289
* so we should not conclude `false` if comparing aliases fails.
290
290
* See pos/i17064.scala for a test case
291
291
*/
292
292
def hasPrecisePrefix (tp : NamedType ) =
293
- tp.prefix.isSingleton || tp.prefix == NoPrefix
293
+ tp.prefix.isStable || tp.prefix == NoPrefix
294
294
295
295
info2 match
296
296
case info2 : TypeAlias =>
You can’t perform that action at this time.
0 commit comments