Closed DavidPerezIngeniero closed 1 month ago
I belive it works as expected https://docs.scala-lang.org/scala3/reference/contextual/given-imports.html
Using import xxx.{*, given}
would import both normal symbols and given
instances
Yes, this works as expected.
Sorry, then it is a lack of knowledge of how to import givens. I'm just migrating to Scala 3.
Compiler version
Minimized code
This code isn't minimized, but I've included the relevant parts.
File
Privilegio.scala
:File
DefaultSerializer.scala
:File
CachePrivilegiosPorEntidad.scala
:Output
Error message from the compiler:
the error is located in i
CachePrivilegiosPorEntidad
innew DefaultJsonSerializer
Expectation
In order to activate
givens
, I can useimport MyObject.*
Workaround
In the
CachePrivilegiosPorEntidad.scala
file, I 've change this line:by this other one:
import fcc.vision.permisos.UserPrivilegesEncoderDecoder.{upd, upe}