Closed WojciechMazur closed 1 month ago
cc @odersky
I played with it a bit. The program generates a constraint M >: M & Module
where M
is a type variable. Previously this constraint was taken to be unsatisfiable. But this is wrong. The constraint has solutions: M = Module
is one, M = Nothing
is the other. So we now succeed the subtyping test at this point, and this seems to nudge the system onto a path where we get type errors.
So I think https://github.com/scala/scala3/issues/21632#:~:text=Bisect%20points%20to-,d0ea3b0,-Minimized%20code was a bugfix and we need to change the open CB project to work with it.
Based on OpenCB failure for
pityka/lamp
- builds logsIn latest versions of the compiler the inferred types used for implicit search has changed. In this project, depending either we call
.unflit
on local variable or directly on the result ofStatefulSeq5.apply
method the infered type would be different.Compiler version
Last good release: 3.6.0-RC1-bin-20240912-8e9ded0-NIGHTLY First bad release: 3.6.0-RC1-bin-20240913-e5be3a1-NIGHTLY Bisect points to d0ea3b0546bfae0c10e0f97937ff3a17a2de5860
Minimized code
Output
Expectation
Should compile