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

Allow subtype test of run-time types #473

Closed
3 tasks done
turbolent opened this issue Nov 27, 2020 · 0 comments · Fixed by #1189
Closed
3 tasks done

Allow subtype test of run-time types #473

turbolent opened this issue Nov 27, 2020 · 0 comments · Fixed by #1189
Assignees

Comments

@turbolent
Copy link
Member

turbolent commented Nov 27, 2020

Issue To Be Solved

It should be possible to test if a run-time type is a subtype of another run-time type:

let otherType: Type = ...
let result = someType.isSubType(of: otherType)

Suggest A Solution

  • Add a function fun isSubType(of: Type) to Type
  • Tests
  • Documentation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants