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

[] instead of []T in error messages in printf() #378

Closed
vtereshkov opened this issue Apr 12, 2024 · 1 comment
Closed

[] instead of []T in error messages in printf() #378

vtereshkov opened this issue Apr 12, 2024 · 1 comment
Labels
bug Something isn't working enhancement New feature or request

Comments

@vtereshkov
Copy link
Owner

fn main() {
        printf("%s\n", []char{'a'})  // Incompatible types str and [] in printf()
}
@vtereshkov vtereshkov added bug Something isn't working enhancement New feature or request labels Apr 12, 2024
@vtereshkov vtereshkov changed the title [] instead of []char in error messages [] instead of []T in error messages in printf() Apr 12, 2024
vtereshkov added a commit that referenced this issue Apr 14, 2024
vtereshkov added a commit that referenced this issue Apr 14, 2024
@vtereshkov
Copy link
Owner Author

Fixed for printf(), but not for scanf(), as scanf() doesn't have full type information at runtime.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant