Summary: nothrow functions with lazy arguments too
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from 2012-01-10 20:43:27 PST ---
int foo(lazy int bar) nothrow {
    return bar();
void main() {
    int r = foo(10);

DMD 2.058 head:

test.d(2): Error: bar is not nothrow
test.d(1): Error: function 'foo' is nothrow yet may throw

But I think foo() is allowed to be nothrow.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to