Skip to content

Commit b39687c

Browse files
mbovelWojciechMazur
authored andcommitted
Keep opaque types in FollowAliasesMap
[Cherry-picked fe1dfee]
1 parent 9cb6ce9 commit b39687c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6262,12 +6262,12 @@ object Types extends TypeUtils {
62626262

62636263
end BiTypeMap
62646264

6265-
/** A typemap that follows aliases and keeps their transformed results if
6266-
* there is a change.
6267-
*/
6265+
/** A typemap that follows non-opaque aliases and keeps their transformed
6266+
* results if there is a change.
6267+
*/
62686268
trait FollowAliasesMap(using Context) extends TypeMap:
62696269
def mapFollowingAliases(t: Type): Type =
6270-
val t1 = t.dealiasKeepAnnots
6270+
val t1 = t.dealiasKeepAnnotsAndOpaques
62716271
if t1 ne t then
62726272
val t2 = apply(t1)
62736273
if t2 ne t1 then t2

0 commit comments

Comments
 (0)