We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Both scalac and dotty rejects following code with the error package meta is not a value :
package meta is not a value
package object meta { def apply(x: Int): Int = x * x } class Test { def f = meta { 5 + 4 } }
As discussed with @xeno-by , it would be good to support this usage.
The text was updated successfully, but these errors were encountered:
Fix scala#1786: support use package object as value
ba48e7f
Fix scala#1786: support use package object in fun call
e8536f0
31337d5
Merge pull request #1787 from dotty-staging/fix-i1786
19bc03c
Try fix #1786: support use package object as value
liufengyun
Successfully merging a pull request may close this issue.
Both scalac and dotty rejects following code with the error
package meta is not a value
:As discussed with @xeno-by , it would be good to support this usage.
The text was updated successfully, but these errors were encountered: