[Issue 6211] __traits (compile) return wrong result when the bug happen

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jul 11 01:29:13 PDT 2011


http://d.puremagic.com/issues/show_bug.cgi?id=6211


Kenji Hara <k.hara.pg at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
                 CC|                            |k.hara.pg at gmail.com
         Resolution|                            |INVALID


--- Comment #6 from Kenji Hara <k.hara.pg at gmail.com> 2011-07-11 01:24:01 PDT ---
This is not bug.
In lib.d, you can't access Foo by name (without importing main).

---- lib.d ----
void Compiled(T, string memberName)()
{
    T t;      // ok
    Foo foo;  // error!
}
----

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list