Skip to content

fix(compilers/openapi): add explicit type args to resolveRef calls - #98

Merged
OmarAlJarrah merged 1 commit into
mainfrom
fix/openapi-resolveRef-type-inference
Jul 27, 2026
Merged

fix(compilers/openapi): add explicit type args to resolveRef calls#98
OmarAlJarrah merged 1 commit into
mainfrom
fix/openapi-resolveRef-type-inference

Conversation

@OmarAlJarrah

Copy link
Copy Markdown
Member

GoLand cannot infer T in the three-parameter generic resolveRef[T, S, R] because S exists only in a constraint position (*S). This produces "Cannot infer T" warnings at every call site. Adding explicit type arguments (e.g. resolveRef[soa.Example](re)) silences the IDE warning without changing runtime behavior or the function signature.

💘 Generated with Crush

GoLand cannot infer T in the three-parameter generic resolveRef when
the S parameter exists only in a constraint position. Adding explicit
type arguments at every call site silences the IDE warning without
changing runtime behavior.

💘 Generated with Crush

Assisted-by: Crush:qwen3.7-max
@OmarAlJarrah
OmarAlJarrah merged commit 2f79f94 into main Jul 27, 2026
1 check passed
@OmarAlJarrah
OmarAlJarrah deleted the fix/openapi-resolveRef-type-inference branch July 27, 2026 06:26
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