-
Notifications
You must be signed in to change notification settings - Fork 1.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
"-language:experimental.packageObjectValues"
compiler flag seems to be missing
#22830
Comments
The test has That seems to be it. |
Thanks @som-snytt! is there any compiler flag I can use to turn it on project-wide? |
I thought |
|
Maybe it needs to be added to this list? |
Ha. I guess this message doesn't mean there is no compiler option.
You must be right. The funny thing, Dr O complained once about keeping values in sync with options, and I contributed a terrible hack, perhaps my first contribution, that I'm pretty sure was not adopted. Edit: it doesn't seem so hacky from this perspective. |
This kind of "collect a bunch of static definitions in a runtime data structure" is very common. In com-lihaoyi we do it in Mill, MainArgs, Scalatags (the CSS DSL), Cask, and other places. Not an uncommon problem at all. All of my libraries use macros for this |
"-language:experimental.packageObjectValues"
compiler flag seems to be missing
Updated the issue title and description to refer to the CLI flag problem |
Compiler version
3.7.0-RC1
Minimized code
"-language:experimental.packageObjectValues"
Output
Expectation
I would have expected this to work, since it's documented in #22011
The text was updated successfully, but these errors were encountered: