Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

upickle.default.macroRW not working in Ammonite Repl 2.5.11 (Scala 3.2.2 Java 17.0.8.1) #1390

Open
RGhosh1665 opened this issue Nov 27, 2023 · 0 comments

Comments

@RGhosh1665
Copy link

@ case class CustomerContext(isPaidMember: Boolean)
defined class CustomerContext

@ implicit val customerRW = upickle.default.macroRW[CustomerContext]
-- Error: cmd1.sc:1:13 ---------------------------------------------------------
1 |implicit val customerRW = upickle.default.macroRW[CustomerContext]
| ^
| type of implicit definition needs to be given explicitly
-- Error: cmd1.sc:1:26 ---------------------------------------------------------
1 |implicit val customerRW = upickle.default.macroRW[CustomerContext]
| ^
|Scala 2 macro cannot be used in Dotty. See https://docs.scala-lang.org/scala3/reference/dropped-features/macros.html
|To turn this error into a warning, pass -Xignore-scala2-macros to the compiler
Compilation Failed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant