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 NewType subclassing NewType. #3465

Merged
merged 1 commit into from
May 28, 2017

Commits on May 26, 2017

  1. Allow NewType subclassing NewType.

    Use case: type hierarchy of IDs, all of which are integers at runtime, but we
    want to type-check distinctions between e.g. "id of User" and "id of Media",
    while still allowing some functions to take "any ID" (which is still a more
    specific type than "any integer").
    carljm committed May 26, 2017
    Configuration menu
    Copy the full SHA
    750dee9 View commit details
    Browse the repository at this point in the history