<div dir="ltr">sorry, not sure what i was thinking... happens when you post late... thanks!</div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jul 20, 2015 at 12:09 AM, Adrian Matoga via Digitalmars-d <span dir="ltr"><<a href="mailto:digitalmars-d@puremagic.com" target="_blank">digitalmars-d@puremagic.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Monday, 20 July 2015 at 07:01:34 UTC, Timothee Cour wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
reposting <a href="https://issues.dlang.org/show_bug.cgi?id=14813" rel="noreferrer" target="_blank">https://issues.dlang.org/show_bug.cgi?id=14813</a> here as it seems quite weird:<br>
</blockquote>
<br></span>
Try this and think again:<br>
<br>
import std.stdio;<br>
<br>
void main()<span class=""><br>
{<br>
alias A = void delegate(int);<br>
//WTF?<br></span>
A temp1 = (some_inexistant_field) { writeln(typeof(some_inexistant_field).stringof); };<br>
temp1(42);<br>
//WTF?<br>
A temp2 = delegate(some_inexistant_field) { writeln(typeof (some_inexistant_field).stringof); };<br>
temp2(1337);<span class=""><br>
alias A2 = void delegate(int,double);<br>
//WTF?<br></span>
A2 temp3 = (some_inexistant_field,sadfasfd) { writeln(typeof(some_inexistant_field).stringof, " ", typeof(sadfasfd).stringof); };<br>
temp3(42, 3.14);<br>
}<br>
</blockquote></div><br></div>