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(dotnet): unable to pass 2d-array of interfaces #2763

Merged
merged 4 commits into from
Apr 2, 2021
Merged

Conversation

RomainMuller
Copy link
Contributor

When a 2-dimensional array of interfaces was passed, the InferType
function failed to account for interfaces, and failed instead of
correctly returning the relevant type reference.

Fixes aws/aws-cdk#12587


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@RomainMuller RomainMuller requested a review from a team March 31, 2021 14:28
@RomainMuller RomainMuller self-assigned this Mar 31, 2021
@mergify mergify bot added the contribution/core This is a PR that came from AWS. label Mar 31, 2021
When a 2-dimensional array of interfaces was passed, the `InferType`
function failed to account for interfaces, and failed instead of
correctly returning the relevant type reference.

Fixes aws/aws-cdk#12587
@RomainMuller RomainMuller marked this pull request as ready for review March 31, 2021 14:37
@mergify
Copy link
Contributor

mergify bot commented Mar 31, 2021

The title of this Pull Request does not conform with [Conventional Commits] guidelines. It will need to be adjusted before the PR can be merged.
[Conventional Commits]: https://www.conventionalcommits.org

@RomainMuller
Copy link
Contributor Author

@all-contributors add @ChristopheVico for bug

@allcontributors
Copy link
Contributor

@RomainMuller

I've put up a pull request to add @ChristopheVico! 🎉

@@ -1512,5 +1512,18 @@ public override String Repeat(String word)
return word;
}
}

[Fact(DisplayName = Prefix + nameof(ArrayOfInterfaces))]
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need to implement this in all other languages?

What about arrays of enums?

@mergify
Copy link
Contributor

mergify bot commented Apr 1, 2021

Thank you for contributing! ❤️ I will now look into making sure the PR is up-to-date, then proceed to try and merge it!

@mergify mergify bot added the pr/ready-to-merge This PR is ready to be merged. label Apr 1, 2021
@mergify
Copy link
Contributor

mergify bot commented Apr 1, 2021

Merging (with squash)...

@mergify mergify bot merged commit 347cf69 into main Apr 2, 2021
@mergify mergify bot deleted the rmuller/dotnet-bug branch April 2, 2021 23:08
@mergify
Copy link
Contributor

mergify bot commented Apr 2, 2021

Merging (with squash)...

@mergify mergify bot removed the pr/ready-to-merge This PR is ready to be merged. label Apr 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contribution/core This is a PR that came from AWS.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

(cloudwatch) System.ArgumentException : Could not infer JSII type for .NET type 'IWidget' (Parameter 'type')
3 participants