[Issue 12203] New: typeof(null) does not convert to "void delegate(float)"
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Feb 19 12:02:58 PST 2014
https://d.puremagic.com/issues/show_bug.cgi?id=12203
Summary: typeof(null) does not convert to "void
delegate(float)"
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: code at benjamin-thaut.de
--- Comment #0 from Benjamin Thaut <code at benjamin-thaut.de> 2014-02-19 12:02:52 PST ---
typeof(null) does not convert to "void delegate(float)". Both the implict as
well as the explicit case do not work. Repro case:
alias void delegate(float) func;
func[] g_data;
void set(U)(auto ref U v)
{
g_data[0] = v;
// g_data[0] = null; // works
}
void main(string[] args)
{
set(null);
}
--
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