[Issue 17659] `pure` causes function to be inferred as a delegate
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Mon Jul 17 10:44:24 PDT 2017
https://issues.dlang.org/show_bug.cgi?id=17659
Steven Schveighoffer <schveiguy at yahoo.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |schveiguy at yahoo.com
--- Comment #1 from Steven Schveighoffer <schveiguy at yahoo.com> ---
I'll add a note that it certainly is possible for a function to be inferred:
void foo() pure {
indirectCall(function() {x++;}); // void function() nothrow @nogc @system
}
The compiler should be able to do so.
--
More information about the Digitalmars-d-bugs
mailing list