Skip to content
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

Ensure delegated type with single type generates safely #2225

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

cam-stitt
Copy link

Motivation

If a delegated type is defined with a single type class, the RBI that is generated fails because the T.any has only one argument.

Implementation

A simple condition to either place T.any or the singular class name, depending on the number of types provided.

Tests

I added a test case to confirm the expected outcome for a singular delegated type.

@cam-stitt cam-stitt requested a review from a team as a code owner March 4, 2025 06:40
@cam-stitt
Copy link
Author

As much as I would like to agree to the CLA, I am not providing you my address.

@KaanOzkan
Copy link
Contributor

Hi @cam-stitt thanks for the PR. Are you okay with filling the form with just the name of the city?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants