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
import { debugPrint; principalOfActor } = "mo:⛔"; actor class C() = Self { debugPrint "So far so good!" }
produces
type error [M0055], cannot infer type of forward variable debugPrint
I think its happening because of the special treatment of the last declaration in a block, that determines its return type.
But it's odd that we don't consider the type of imported identifiers to be known (they should be I think).
The text was updated successfully, but these errors were encountered:
Self
actor
No branches or pull requests
produces
I think its happening because of the special treatment of the last declaration in a block, that determines its return type.
But it's odd that we don't consider the type of imported identifiers to be known (they should be I think).
The text was updated successfully, but these errors were encountered: