https://issues.dlang.org/show_bug.cgi?id=10619
Sönke Ludwig <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #4 from Sönke Ludwig <[email protected]> --- I assume that this has the same root cause: --- void checkAlias(X...)(int cmp) { assert(X[0] == cmp); } void main() { foreach (j; 0 .. 2) { if (j == 0) { int i = 42; checkAlias!(i)(i); // succeeds (42 == 42) } else { int i = 13; checkAlias!(i)(i); // fails (42 == 13) } } } --- This is a reduced test case of https://github.com/rejectedsoftware/vibe.d/issues/863 --
