[Issue 21501] [REG 2.089.1] undefined identifier in package when using mixin and cyclic imports
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Wed Dec 23 13:52:58 UTC 2020
    
    
  
https://issues.dlang.org/show_bug.cgi?id=21501
Boris Carvajal <boris2.9 at gmail.com> changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |boris2.9 at gmail.com
--- Comment #1 from Boris Carvajal <boris2.9 at gmail.com> ---
I remember this issue, the problem is that the compiler has a different logic
to resolve a qualified type vs a dot expression, mixin is not required to
reproduce it:
struct A
{
    alias a = test.c.C; // works
    auto b = test.c.C; // fails even if C is a variable
}
Currently this kind of mixin can parse both types and expressions but it will
prefer expressions, so it's hitting the wall.
I'll try to see what can I do.
--
    
    
More information about the Digitalmars-d-bugs
mailing list