[Issue 8362] safe function 'benchmark' cannot call system function literal
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Jul 8 18:07:16 PDT 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8362
--- Comment #2 from Jonathan M Davis <jmdavisProg at gmx.com> 2012-07-08 18:07:14 PDT ---
Actually, I left some extra cruft in that example. The actual example is
import std.traits;
struct S{ auto fun() { return 1; } }
void main()
{
auto s1 = S();
static assert(!isSafe!({auto r = s1.fun();}));
}
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list