https://issues.dlang.org/show_bug.cgi?id=14346
RazvanN <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |[email protected] Resolution|--- |FIXED --- Comment #4 from RazvanN <[email protected]> --- (In reply to ag0aep6g from comment #3) > Reduced further: > > ---- > template typeOf(alias From) > { > alias typeOf = typeof(From); > } > > string val; > int embedded; > > void main() > { > foreach(UDA; Tuple!val) > { > pragma(msg, typeOf!UDA); /* prints "string", ok */ > } > foreach(UDA; Tuple!embedded) > { > /* THE RESULT OF THIS DEPENDS ON THE LINE ABOVE: */ > pragma(msg, typeOf!UDA); /* prints "string", should print "int" */ > } > } > > alias Tuple(stuff ...) = stuff; > ---- > > This is very similar to issue 14501. When running the above code the second pragma prints int as expected. It seems that this has been fixed. --
