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

Enhancement: Base(child) class object upcast #16426

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from
Draft

Commits on Apr 29, 2024

  1. Enhancement: Base(child) class object upcast

    `FundamentalType(arg)` works, e.g. `int(2)`.
    
    `Enum(Enum.foo)` works, which does nothing - see:
    https://issues.dlang.org/show_bug.cgi?id=16346
    
    Let's allow class instance upcasting without having to use `cast`.
    `cast` can be bug-prone, and upcasting is always fine.
    
    Here upcasting takes precedence over a static opCall.
    ntrel committed Apr 29, 2024
    Configuration menu
    Copy the full SHA
    0f93501 View commit details
    Browse the repository at this point in the history

Commits on May 15, 2024

  1. Give opCall priority

    ntrel committed May 15, 2024
    Configuration menu
    Copy the full SHA
    9c8e8cd View commit details
    Browse the repository at this point in the history
  2. Rename label

    ntrel committed May 15, 2024
    Configuration menu
    Copy the full SHA
    7adf247 View commit details
    Browse the repository at this point in the history