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

          Issue ID: 16279
           Summary: foreach and opApply cannot be nogc
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Windows
            Status: NEW
          Severity: major
          Priority: P1
         Component: dmd
          Assignee: [email protected]
          Reporter: [email protected]

If one tries to override onApply in a nogc setting, they cannot because marking
the delegate nogc prevents foreach from working. One can't have both delegate
types as a stranger error happens.

This seems to be similar to https://issues.dlang.org/show_bug.cgi?id=15624

--

Reply via email to