www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 14557] New: Check typedef usage at semantic stage


          Issue ID: 14557
           Summary: Check typedef usage at semantic stage
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: minor
          Priority: P1
         Component: DMD
          Assignee: nobody puremagic.com
          Reporter: public dicebot.lv

version (none)
    typedef int MyInt;

sample.d(2): Error: use alias instead of typedef

This is somewhat unexpected and makes impossible having D1 and D2 code versions
in the same module.

May 07 2015