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
this
The following code
struct Foo { public message: String public function print_message(this) { let captures_this = function() { println(this.message) } captures_this() } }
gives a error: 'this' cannot be implicitly captured in this context in the C++ compiler, when it should probably just fail in the jakt compiler.
error: 'this' cannot be implicitly captured in this context
The text was updated successfully, but these errors were encountered:
Indeed, it looks like we don't validate captures at all right now. Definitely an area that needs improvement :)
Sorry, something went wrong.
No branches or pull requests
The following code
gives a
error: 'this' cannot be implicitly captured in this context
in the C++ compiler, when it should probably just fail in the jakt compiler.The text was updated successfully, but these errors were encountered: