Skip to content

Commit 9dd31f8

Browse files
committed
Use ProblemInUnderlying consistently
1 parent ef200be commit 9dd31f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ class CheckRealizable(implicit ctx: Context) {
9393
// The symbol itself is stable, cache this information:
9494
sym.setFlag(Stable)
9595
// Realizability now depends on the prefix:
96-
patchRealizability(realizability(tp.prefix))
96+
patchRealizability(realizability(tp.prefix).mapError(r => new ProblemInUnderlying(tp.prefix, r)))
9797
} else if (!sym.isEffectivelyFinal)
9898
patchRealizability(new NotFinal(sym))
9999
else

0 commit comments

Comments
 (0)