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
It's possible to define a static type method, as described in Static type methods, without defining the struct or interface.
This works:
fn main() { Mystery.hey() } // No definition of `Mystery` here. fn Mystery.hey() { println('hey, ${@METHOD}') }
I'd expect an error, or a warning at least. Most probably, the developer has mistyped the type name or has left out the implementation somehow.
The code compiles and gets executed.
No response
0.4.7 7baff15
Ubuntu 18 under WSL.
Note
You can use the 👍 reaction to increase the issue's priority for developers.
Please note that only the 👍 reaction to the issue itself counts as a vote. Other reactions and those to comments will not be taken into account.
The text was updated successfully, but these errors were encountered:
Bug or feature? :)
Sorry, something went wrong.
It is bug
Delta456
Successfully merging a pull request may close this issue.
Describe the bug
It's possible to define a static type method, as described in Static type methods, without defining the struct or interface.
Reproduction Steps
This works:
Expected Behavior
I'd expect an error, or a warning at least. Most probably, the developer has mistyped the type name or has left out the implementation somehow.
Current Behavior
The code compiles and gets executed.
Possible Solution
No response
Additional Information/Context
No response
V version
0.4.7 7baff15
Environment details (OS name and version, etc.)
Ubuntu 18 under WSL.
Note
You can use the 👍 reaction to increase the issue's priority for developers.
Please note that only the 👍 reaction to the issue itself counts as a vote.
Other reactions and those to comments will not be taken into account.
The text was updated successfully, but these errors were encountered: