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

Nullable behavior #5

Open
wilsonjord opened this issue Jul 2, 2018 · 0 comments
Open

Nullable behavior #5

wilsonjord opened this issue Jul 2, 2018 · 0 comments

Comments

@wilsonjord
Copy link

Hello,

Just some odd behavior when using Nullable:

    auto a = unit!double("A");
    auto b = unit!double("B") / unit!double("A");
    auto c = Nullable!(QVariant!double) (b);

    writeln (a * b); // 1 [B]
    writeln (b * a); // 1 [B]
    writeln (c * a); // 1 [B]
    writeln (a * c); // DimensionException, Not dimensionless

Thanks,

Jordan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant