www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 17096] New: many traits accept an invalid parameter count

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

          Issue ID: 17096
           Summary: many traits accept an invalid parameter count without
                    error
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: minor
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: b2.temp gmx.com

By error, if you don't know well the spec, this scenario is quite possible:


class B{final void foo(){}

enum a =__traits(isFinalFunction, B, "foo");
Jan 15