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
right now when we write
@basic(typeinfer=True) def main(x): x = x + 1
the return type will be types.Literal(None) which is due to https://github.com/QuEraComputing/kirin/blob/main/src/kirin/dialects/func/typeinfer.py#L28 and the real reason we have this is because our type system does not understand singletons
types.Literal(None)
The text was updated successfully, but these errors were encountered:
typeinfer should return NoneType for None (#275)
da0f256
I think we should just special case `None` for now before actually supporting enums and singletons (#266)
No branches or pull requests
right now when we write
the return type will be
types.Literal(None)
which is due to https://github.com/QuEraComputing/kirin/blob/main/src/kirin/dialects/func/typeinfer.py#L28 and the real reason we have this is because our type system does not understand singletonsThe text was updated successfully, but these errors were encountered: