Changing the definition of a class doesn't force re-comp of derived givens in other files #22475
Labels
area:implicits
related to implicits
area:typeclass-derivation
itype:bug
stat:needs minimization
Needs a self contained minimization
Compiler version
3.6.2
Minimized code
In
Schema.scala
, I have this (top-level given):In another file I have
When I edit the type, I'd expect the
Schema
to also get recompiled, because it is relying on derivation. Alas, it does not and only the file with the type gets recompiled. This means thegiven
can get out of sync with the type.If needed I can make a minimal working project tomorrow (this is using
tapir
)Expectation
Changing a type would force recompilation of all derived things of that type.
The text was updated successfully, but these errors were encountered: