[Issue 3882] Unused result of pure functions

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Mar 9 12:47:50 PDT 2014


https://d.puremagic.com/issues/show_bug.cgi?id=3882



--- Comment #23 from bearophile_hugs at eml.cc 2014-03-09 12:47:48 PDT ---
Perhaps I am missing something, but I am not seeing a warning with this code:


int foo(int x) pure nothrow {
    return x - 1;
}
void main() {
    foo(5);
}

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list