[Issue 24063] New: Disallow overloads that make no sense

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Aug 1 13:47:59 UTC 2023


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

          Issue ID: 24063
           Summary: Disallow overloads that make no sense
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: qs.il.paperinik at gmail.com

Functions can be overloaded based on attributes, linkage, and possibly other
details that cannot be distinguished by a caller and therefore always give you
an ambiguity error.

The spec should clarify that it cannot be done and such overloads should not
compile.

--


More information about the Digitalmars-d-bugs mailing list