[Issue 2189] bad alias declaration not reported as semantic error
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Mon Sep  9 13:21:33 UTC 2019
    
    
  
https://issues.dlang.org/show_bug.cgi?id=2189
RazvanN <razvan.nitu1305 at gmail.com> changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |razvan.nitu1305 at gmail.com
         Resolution|---                         |INVALID
--- Comment #1 from RazvanN <razvan.nitu1305 at gmail.com> ---
This bug report is invalid. `test.c` is a valid identifier and taking an alias
to it is fine. For example:
class test1
{
    alias test.c d;
    void foo()
    {   
        int a = d.offsetof;
    }   
}
If you use it like this:
class test1
{
    alias test.c d;
    void foo()
    {
        int a = d;                                                              
    }
}
The you get the correct error: "need this for c of type int".
Closing as invalid.
--
    
    
More information about the Digitalmars-d-bugs
mailing list