Skip to content

Conversation

@benbellick
Copy link
Member

Closes #182

@codecov
Copy link

codecov bot commented Jan 20, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 68.79%. Comparing base (579861e) to head (ec9e1a3).

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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

// 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.
Copy link
Member Author

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.

Copy link
Member Author

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.)
Copy link
Member Author

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
@benbellick benbellick marked this pull request as ready for review January 20, 2026 21:19
@benbellick benbellick requested review from bvolpato and vbarua January 20, 2026 21:19
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.

Polymorphic types (any, any1, any2, etc.) fail inside struct return types

2 participants