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

? will be allowed as a wildcard by default in Scala 2.13.9 and 2.12.16 #2733

Closed
smarter opened this issue Apr 20, 2022 · 0 comments · Fixed by #2734
Closed

? will be allowed as a wildcard by default in Scala 2.13.9 and 2.12.16 #2733

smarter opened this issue Apr 20, 2022 · 0 comments · Fixed by #2734

Comments

@smarter
Copy link
Contributor

smarter commented Apr 20, 2022

Previously, this was only allowed under -Xsource:3, but starting from 2.13.9 (cf scala/scala#9990) and 2.12.16 (cf scala/scala#10005) this syntax will be enabled by default, so scalameta should support it without requiring the use of Scala213Source3/Scala212Source3:

/**
* Dialect starting with Scala 2.13.6 for `-Xsource:3` option
*/
implicit val Scala213Source3 = Scala213
.withAllowQuestionMarkPlaceholder(true)

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

Successfully merging a pull request may close this issue.

1 participant