[Issue 19554] New: [2.084.0] Confusing message - Warning: struct Foo has method toHash

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jan 7 09:32:42 UTC 2019


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

          Issue ID: 19554
           Summary: [2.084.0] Confusing message - Warning: struct Foo has
                    method toHash
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: major
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: radu.racariu at gmail.com

Compiler prints this non-informative warning:
---
Warning: struct Foo has method toHash, however it cannot be called with
shared(const(Foo)) this.
---

There is no line number to indicate what causes the warning.

--


More information about the Digitalmars-d-bugs mailing list