-
Notifications
You must be signed in to change notification settings - Fork 26
fix: allow any1s in struct return type in YAML extensions #185
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
base: main
Are you sure you want to change the base?
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #185 +/- ##
=======================================
Coverage 68.79% 68.79%
=======================================
Files 45 45
Lines 10367 10367
=======================================
Hits 7132 7132
Misses 2886 2886
Partials 349 349 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
| // For concrete types: returns itself unchanged. | ||
| // | ||
| // Note: The same type may appear in both parameter and return positions (e.g., any1 | ||
| // as a parameter and nested inside struct<any1>). This interface covers both cases. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added this comment because I found this function very confusing. I think there is opportunity to improve this API, but that can be saved for another PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The start of this could be #186
| } | ||
|
|
||
| func (d *DataTypeUDTParam) toTypeParam() (TypeParam, error) { | ||
| // TODO(#184): Pass funcParams and argTypes to support polymorphic types (any, any1, etc.) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wanted to keep the diff small and this one seemed a tiny bit more involved than the others.
This one is a little extra just to be safe
Closes #182