Skip to content
New issue

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

chore: update the Type.toString to support output auto #2879

Merged
merged 1 commit into from
Oct 27, 2024

Conversation

HerrCai0907
Copy link
Member

No description provided.

@CountBleck
Copy link
Member

CountBleck commented Oct 27, 2024 via email

@HerrCai0907
Copy link
Member Author

LGTM

Out of curiosity, what's the use case?

I think it is much easier when do some debug. sometime it is confused to find a i32 output but it is definitely not i32. after this pr. auto can be print correctly.

maybe it can also change some error in special cases. e.g. if missing type field, compiler will use auto to let subexpr give the type. in theory when subexpr cannot infer the type, old diag will report i32 but new will report auto. But i cannot find this case now.

@HerrCai0907 HerrCai0907 merged commit 1554258 into main Oct 27, 2024
14 checks passed
@HerrCai0907 HerrCai0907 deleted the fix/to_string branch October 27, 2024 16:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants