[Issue 20138] New: is expression not evaluating correctly?

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Aug 18 08:26:10 UTC 2019


https://issues.dlang.org/show_bug.cgi?id=20138

          Issue ID: 20138
           Summary: is expression not evaluating correctly?
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: blocker
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: turkeyman at gmail.com

Check this out:

  alias X = shared inout int;
  pragma(msg, X, "  ", is(X == shared U, U));

> shared(inout(int))  false

I feel like that should print `true`, and U should be `inout(int)`...?

This works:

  alias X = shared int;
  pragma(msg, X, "  ", is(X == shared U, U));

> shared(int)  true


What's going on here?

--


More information about the Digitalmars-d-bugs mailing list