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

Document supertype(T::UnionAll) (#54286) #54419

Merged
merged 2 commits into from
May 10, 2024

Conversation

xlxs4
Copy link
Sponsor Contributor

@xlxs4 xlxs4 commented May 9, 2024

Fixes #54286.

@@ -66,14 +66,19 @@ Supertype operator, equivalent to `T2 <: T1`.
(>:)(@nospecialize(a), @nospecialize(b)) = (b <: a)

"""
supertype(T::DataType)
supertype(T::Type)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
supertype(T::Type)
supertype(T::Union{DataType, UnionAll})

@nsajko nsajko added the domain:docs This change adds or pertains to documentation label May 10, 2024
@LilithHafner
Copy link
Member

Thanks!

@LilithHafner LilithHafner merged commit 4793328 into JuliaLang:master May 10, 2024
7 checks passed
@xlxs4 xlxs4 deleted the supertype-docs branch May 10, 2024 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
domain:docs This change adds or pertains to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

supertype is documented to only accept a DataType when it also accepts other types
3 participants