-
Notifications
You must be signed in to change notification settings - Fork 199
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes Azure/autorest.csharp#4678 We are only checking if the input type is a generic type, and then get its generic argument if it is. We are not checking if it is this special generic type `System.Nullable<T>` which appears to be a generic type but we actually want it to be non-generic but nullable. This PR changes the final constructor that would be invoke for all cases that a ctor of CSharpType from a `System.Type` to add a check if it is `System.Nullable<T>`, we will use `T` as `_type`, and the arguments of `T` as the real arguments.
- Loading branch information
1 parent
1f82d65
commit 913aa03
Showing
2 changed files
with
82 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters