Summary: ParameterStorageClassTuple doesn't recognize 'in'
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos

--- Comment #0 from Andrej Mitrovic <> 2012-09-19 
07:40:04 PDT ---
import std.traits;

void foo(const scope int x) { }
void bar(in int x) { }

void main()
    alias ParameterStorageClass SC;
    alias ParameterStorageClassTuple SCT;

    static assert(SCT!foo[0] == SC.scope_);
    static assert(SCT!bar[0] == SC.scope_);

Error: static assert  (0u == cast(ParameterStorageClass)1u) is false

Since 'in' is equivalent to 'const scope' both asserts should pass.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to