Skip to content

Commit 3c789c2

Browse files
committed
Simplify hasPrecisePrefix check
`NoPrefix.isStable` already returns true.
1 parent c8efe69 commit 3c789c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/core/TypeComparer.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ class TypeComparer(@constructorOnly initctx: Context) extends ConstraintHandling
290290
* See pos/i17064.scala for a test case
291291
*/
292292
def hasPrecisePrefix(tp: NamedType) =
293-
tp.prefix.isStable || tp.prefix == NoPrefix
293+
tp.prefix.isStable
294294

295295
info2 match
296296
case info2: TypeAlias =>

0 commit comments

Comments
 (0)