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

Added error message #3167

Merged
merged 5 commits into from
Jan 24, 2024
Merged

Added error message #3167

merged 5 commits into from
Jan 24, 2024

Conversation

parth121101
Copy link
Contributor

Fix #3071

@parth121101
Copy link
Contributor Author

@HarshitaKalani Please review this PR

Copy link
Contributor

@HarshitaKalani HarshitaKalani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Please add a test for this.

@@ -1677,11 +1677,14 @@ void add_ws_warning(const Location &loc,
"Use integer(4) instead of integer*4",
{loc},
"help: write this as 'integer(4)'");
} else{
} else if(a_kind == 8){
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
} else if(a_kind == 8){
} else if (a_kind == 8) {

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please rectify it in the above case too?

@HarshitaKalani
Copy link
Contributor

HarshitaKalani commented Jan 23, 2024

You need to add the test here: tests/errors/
And then register it in tests.toml
And finally update the references with:

run_tests.py -u

@parth121101 parth121101 reopened this Jan 23, 2024
@parth121101 parth121101 marked this pull request as ready for review January 23, 2024 07:34
Copy link
Contributor

@certik certik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this looks good, thanks!

@certik certik enabled auto-merge (squash) January 24, 2024 15:11
@certik certik merged commit c285546 into lfortran:main Jan 24, 2024
21 checks passed
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.

Kind 16 is not supported for Integer
3 participants