Skip to content

Commit 887ff57

Browse files
committed
Use ProblemInUnderlying consistently
1 parent cb2c078 commit 887ff57

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
@@ -95,7 +95,7 @@ class CheckRealizable(implicit ctx: Context) {
9595
// The symbol itself is stable, cache this information:
9696
sym.setFlag(Stable)
9797
// Realizability now depends on the prefix:
98-
patchRealizability(realizability(tp.prefix))
98+
patchRealizability(realizability(tp.prefix).mapError(r => new ProblemInUnderlying(tp.prefix, r)))
9999
} else if (!sym.isEffectivelyFinal)
100100
patchRealizability(new NotFinal(sym))
101101
else

0 commit comments

Comments
 (0)