www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 17916] New: __future does nothing for AggregateDeclarations

https://issues.dlang.org/show_bug.cgi?id=17916

          Issue ID: 17916
           Summary:  __future does nothing for AggregateDeclarations
           Product: D
           Version: D2
          Hardware: x86_64
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: razvan.nitu1305 gmail.com

The future keyword should work in all cases that deprecation works. The dip
says that all Dsymbols could work with  __future, but isFuture is implemented
in the Declaration AST node.

Probably it should be moved in Dsymbol and the associated logic should be
implemented for AggregateDeclarations and global variables.

--
Oct 19