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

Fix test compile errors #539

Merged
merged 19 commits into from
Mar 11, 2020
Merged

Fix test compile errors #539

merged 19 commits into from
Mar 11, 2020

Conversation

GrahamTheCoder
Copy link
Member

@GrahamTheCoder GrahamTheCoder commented Mar 8, 2020

The main point of this PR is to make it easy to avoid any new non-compiling tests being added. i.e. Make test assertion cover any compilation issues in source or target.

About 20% of the tests have compilation issues of some kind. You could argue in some cases it's beneficial to be able to cope with dodgy input, but most of the tests aren't doing that, so should be fixed at some point. The exception to the rule is the MissingSemanticInfo tests which are explicitly intended to cover incomplete input. I've decided to still make the compilation errors visible in the output since being explicit rarely hurts, and could help debugging.

  • Deal with remaining 10-15 tests which auto-characterization didn't cover
  • Fix CS8751: Internal error in the C# compiler. which looks like it might be a due to an invalid array initialization output
  • Check for other language version issues (like nameof), e.g. The contextual keyword 'var' may only appear...

@GrahamTheCoder GrahamTheCoder force-pushed the fix-test-compile-errors branch from da01cf3 to ee2b18f Compare March 8, 2020 22:43
@GrahamTheCoder GrahamTheCoder force-pushed the fix-test-compile-errors branch from d578963 to dd3315d Compare March 10, 2020 00:07
@GrahamTheCoder GrahamTheCoder merged commit 6e5b036 into master Mar 11, 2020
@GrahamTheCoder GrahamTheCoder deleted the fix-test-compile-errors branch March 11, 2020 08:50
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.

1 participant