Closed WojciechMazur closed 5 months ago
I believe this is an expected error. Or at least, we intended for it to be an error in #20077.
The i15183
test looks to be a very similar minimisation as above, it was changed in the PR to account for the fix in determining implicit scope.
TLDR the regression is necessary for the implicit scope to be the same for joint vs separate compilation.
I believe it would be fixed here too by adding an import Decoder.given
in 2_usage.scala
.
Alright, there's nothing we can fix on our side, it seems. Code changes will be necessary. Closing this.
Based on OpenCB failures in
jcouyang/dhall-generic
- build logsThe compiler fails to search for implicit instances defined in companion of the typeclass. It requires explicit import at the place of usage
Compiler version
Last good release: 3.5.0-RC1-bin-20240406-521ce95-NIGHTLY First bad release: 3.5.0-RC1-bin-20240408-1e8a653-NIGHTLY
The compilation errors when building compiler prevented gathering the exact commit that coused regression it can be any of: d2a6392131001af941b0614c9e6d812e8c761965 1dc5b995cfb84dd3e2673041d6e954ed6043900e 321d0d2cdee757fe311c9959817794acaad0fbdb 1e8a653cce58ddb038c04a906448db92172828dd
The project-wise bisect nominated 90c3fbde37a70fdd366ed25d2082e05ddf24ac3e as the cause of the regression
Minimized code
Needs to be defined as 2 compilation units I was able to reproducer
Decoder[Empty]
in single file, but the other cases required definitions and usage to be split in previous Scala versions.Output
Expectation
Should compile