We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 52db678 commit fe1dfeeCopy full SHA for fe1dfee
1 file changed
compiler/src/dotty/tools/dotc/core/Types.scala
@@ -6280,12 +6280,12 @@ object Types extends TypeUtils {
6280
6281
end BiTypeMap
6282
6283
- /** A typemap that follows aliases and keeps their transformed results if
6284
- * there is a change.
6285
- */
+ /** A typemap that follows non-opaque aliases and keeps their transformed
+ * results if there is a change.
+ */
6286
trait FollowAliasesMap(using Context) extends TypeMap:
6287
def mapFollowingAliases(t: Type): Type =
6288
- val t1 = t.dealiasKeepAnnots
+ val t1 = t.dealiasKeepAnnotsAndOpaques
6289
if t1 ne t then
6290
val t2 = apply(t1)
6291
if t2 ne t1 then t2
0 commit comments