Skip to content

Fixed the bug where ExposeAs was creating the wrong type#44

Merged
ByronMayne merged 1 commit intomasterfrom
fixed-interface-return-types
Dec 28, 2024
Merged

Fixed the bug where ExposeAs was creating the wrong type#44
ByronMayne merged 1 commit intomasterfrom
fixed-interface-return-types

Conversation

@ByronMayne
Copy link
Owner

It would try to create an instance of an interface and fail

@@ -1,4 +1,4 @@
 return new {{ReturnType.QualifiedName}}(
 return new {{Type.QualifiedName}}(
Copy link
Owner Author

Choose a reason for hiding this comment

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

This was the crux of the problem. I twas using the return type which when used ExposedAs would be the wrong type

@ByronMayne ByronMayne merged commit c31e07f into master Dec 28, 2024
@ByronMayne ByronMayne deleted the fixed-interface-return-types branch December 29, 2024 00:12
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.

1 participant