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

Support generic qualifiers for TypeName #115

Merged
merged 1 commit into from
Jan 23, 2024
Merged

Conversation

kdubb
Copy link
Contributor

@kdubb kdubb commented Jan 23, 2024

Allows qualifying a TypeName with a generic qaulifier (some or any).

You qualify a type explicitly or using convenience on TypeName:

val myType = DeclaredTypeName.typeName(".MyType")

// Explicitly
GenericQualifiedTypeName.any(myType) // -> any MyType

// Convenience
myType.qualify(GenericQualifier.Any) // -> any MyType

Fixes #114

Allows qualifying a `TypeName` with a generic qaulifier (`some` or `any`).
@kdubb kdubb merged commit 7e699b8 into main Jan 23, 2024
1 check passed
@kdubb kdubb deleted the feature/generic-qualify branch January 23, 2024 18:36
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.

How to indicate that a function returns "some TypeName"?
2 participants