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

          Issue ID: 17827
           Summary: Unused lazy parameter supposedly calls dtor
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: [email protected]
          Reporter: [email protected]

struct A { ~this() {} }
void foo(lazy A a) pure {} // Error: pure function 'foo' cannot call impure
destructor 'A.~this'

--

Reply via email to