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

Supporting generic type aliases? #435

Closed
marcandre opened this issue Oct 19, 2020 · 1 comment
Closed

Supporting generic type aliases? #435

marcandre opened this issue Oct 19, 2020 · 1 comment

Comments

@marcandre
Copy link
Member

Currently, type can not have be generic.

This would be quite useful, in particular to define array[T]. Is it something that is planned?

type array[T] = Array[T] | _ToAry[T]
@soutaro soutaro added this to the After Ruby 3.0 milestone Nov 1, 2020
@pocke
Copy link
Member

pocke commented Dec 31, 2021

This feature has been implemented in #823, so I'll close this issue.

@pocke pocke closed this as completed Dec 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants