Skip to content

Conversation

@liboz
Copy link
Contributor

@liboz liboz commented Feb 10, 2017

Attempts to fix #2373

Copy link
Contributor

@BillHally BillHally left a comment

Choose a reason for hiding this comment

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

Thanks for this.

You could combine the test you make in the "if" clause with the existing "when" clause, and then you wouldn't need to duplicate the code in the "else" clause and the outermost "_" match case.

@KevinRansom
Copy link
Contributor

@liboz Any chance we could add a regression test, to ensure we keep it working?

Kevin

@liboz
Copy link
Contributor Author

liboz commented Feb 13, 2017

I'm not sure how to add a test that uses peverify because the weird thing about this case is that the compilation step works for the broken code, but it fails peverify.

@vasily-kirichenko
Copy link
Contributor

@liboz I believe there are many tests that compile and peverify, search the codebase.

@dsyme
Copy link
Contributor

dsyme commented Feb 13, 2017

@liboz
Copy link
Contributor Author

liboz commented Feb 13, 2017

@vasily-kirichenko @dsyme Thanks for pointing me in the right direction.

@KevinRansom
Copy link
Contributor

@liboz
ty

@liboz liboz changed the title [WIP] Fix for #2373 Fix for #2373 Feb 13, 2017
@KevinRansom KevinRansom merged commit 71a3609 into dotnet:master Feb 15, 2017
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.

4.1 compiler generates invalid programs for structs which use measure types

6 participants