[Issue 6963] pure/nothrow inference doesn't work for function pointers
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Nov 18 02:22:21 PST 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6963
--- Comment #1 from Kenji Hara <k.hara.pg at gmail.com> 2011-11-18 02:20:42 PST ---
It doesn't occur if the declarations are in function scope.
void foo(X)(X x) {}
// doesn't work
//immutable void function(int) pure bar1 = &foo!(int);
//immutable nothrow pure bar2 = &foo!(int);
void main()
{
// does work
immutable void function(int) pure bar1 = &foo!(int);
immutable nothrow pure bar2 = &foo!(int);
}
--
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