www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Bug 23] New: DDoc Error: "static if conditional cannot be at global scope."

reply d-bugmail puremagic.com writes:

           Summary: DDoc Error: "static if conditional cannot be at global
           Product: D
           Version: 0.148
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P3
         Component: DMD
        AssignedTo: walter digitalmars.com
        ReportedBy: sean f4.ca

DMD DDoc generation will not accept static if blocks defined at class scope,
though the code compiles cleanly to an executable.

C:\code\d\bugs>type 148_1.d
struct MyStruct(T)
    static if( true )
        void f1() {}

void main()

C:\code\d\bugs>dmd -D -o- 148_1.d
148_1.d(6): Error: static if conditional cannot be at global scope


Mar 06 2006
parent d-bugmail puremagic.com writes:

bugzilla digitalmars.com changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

------- Comment #1 from bugzilla digitalmars.com  2006-04-28 02:54 -------
Fixed 0.155

Apr 28 2006