Skip to content

Commit a165c0c

Browse files
committed
Keep opaque types in FollowAliasesMap
1 parent 8edc520 commit a165c0c

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
@@ -6280,12 +6280,12 @@ object Types extends TypeUtils {
62806280

62816281
end BiTypeMap
62826282

6283-
/** A typemap that follows aliases and keeps their transformed results if
6284-
* there is a change.
6285-
*/
6283+
/** A typemap that follows non-opaque aliases and keeps their transformed
6284+
* results if there is a change.
6285+
*/
62866286
trait FollowAliasesMap(using Context) extends TypeMap:
62876287
def mapFollowingAliases(t: Type): Type =
6288-
val t1 = t.dealiasKeepAnnots
6288+
val t1 = t.dealiasKeepAnnotsAndOpaques
62896289
if t1 ne t then
62906290
val t2 = apply(t1)
62916291
if t2 ne t1 then t2

0 commit comments

Comments
 (0)