Skip to content
This repository was archived by the owner on Jan 12, 2024. It is now read-only.

Conversation

@ScottCarda-MS
Copy link
Contributor

@ScottCarda-MS ScottCarda-MS commented Oct 14, 2020

Fixes a bug where access modifiers for concretizations generated during monomorphization were simply assigned the access of their generic parent. This causes an issue if any of the concretizing types are more restrictive than the original generic callable. This PR fixes this by taking the most restrictive of all the access modifiers between the original callable and all of the concretizing types.

This also adds a unit test to make sure type arguments are handled correctly by monomorphization.

@ScottCarda-MS ScottCarda-MS merged commit 25984b3 into main Oct 22, 2020
@bettinaheim bettinaheim deleted the sccarda/MonomorphizationAccessModifiers branch October 22, 2020 02:03
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants