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

Issue66/invalid program exception #100

Merged
merged 7 commits into from
Oct 5, 2022

Conversation

psaxton
Copy link

@psaxton psaxton commented Sep 22, 2022

Partially resolves #66: The original issue was caused with methods ending in a if-else block. Later reports show try-catch and try-finally blocks also result in an InvalidProgramException, but this apparently has a different cause and is reported on its own in #97.

I don't know how the maintainers want to continue to track the defects (close #66 and keep #97 open; keep #66 and close #97 as dup; etc.), but figured it is worth fixing at least this cause of the exception.

Philip R. Saxton added 7 commits September 21, 2022 07:56
Current changes fix the InvalidProgramException defect for if and if-else block method bodies. This will allow a PR to be merged fixing these conditions. Another branch will be created demonstrating the try-catch issue and hopefully a fix can be created from that.
Adds tests proving using, switch and foreach blocks do not error.
@psaxton
Copy link
Author

psaxton commented Oct 4, 2022

Was able to verify and fix all reported sources of InvalidProgramException defects. This now fixes issue #97 as well.

@Ralf1108
Copy link
Collaborator

Ralf1108 commented Oct 5, 2022

Wow, great work @psaxton !!! Thank you very much!

I will trigger a prerelease nuget-package so the other guys can verify that their issues are solved!

@Ralf1108 Ralf1108 merged commit 1cb1c70 into vescon:master Oct 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants