-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
[2.4.x] Json.format returns OFormat but API says Format #7024
Comments
There is no contradiction here really. Normally when declaring types, you would use the most general interface ( |
@gmethvin I agree with your general comments that when declaring types, you would use the interface rather than the implementation type. However, in this case, I have also noticed that the documentation in Play 2.5 has been updated to show that it returns |
Okay, so the issue is not actually the documentation. The macro is typed to return The change to I've marked this PR as "community" since this is for an experimental feature in an older release, so it's not a priority for us, but it would be a good task for a community member to address. |
2.4.x is EOL |
Play Version (2.5.x / etc)
2.4.3
API (Scala / Java / Neither / Both)
Scala
Expected Behaviour
Please describe the expected behaviour of the issue, starting from the first action.
Actual Behaviour
The text was updated successfully, but these errors were encountered: