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

Improve error message for a invalid member declaration #12342

Merged
merged 1 commit into from
Nov 22, 2021
Merged

Improve error message for a invalid member declaration #12342

merged 1 commit into from
Nov 22, 2021

Conversation

savi2w
Copy link
Contributor

@savi2w savi2w commented Nov 5, 2021

This PR changes the error message for #920
Closes #920

@dnfadmin
Copy link

dnfadmin commented Nov 5, 2021

CLA assistant check
All CLA requirements met.

@smoothdeveloper
Copy link
Contributor

@omppye, that's great, could you add a test in tests\fsharp\test.fs, it should call singleNegTest function, compiling a F# code file that exhibits the error message you are addressing.

This way, the new message will be under test, as right now, it seems the CI doesn't break on this change.

@savi2w
Copy link
Contributor Author

savi2w commented Nov 6, 2021

The CI is failing because of #12348

src/fsharp/FSComp.txt Outdated Show resolved Hide resolved
@savi2w savi2w requested a review from dsyme November 21, 2021 20:31
@dsyme dsyme merged commit 8c300e6 into dotnet:main Nov 22, 2021
@dsyme
Copy link
Contributor

dsyme commented Nov 22, 2021

Thanks!

@savi2w savi2w deleted the fix-920 branch November 22, 2021 17:27
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.

Confusing error message for invalid member declaration
4 participants