Comment #0 by verylonglogin.reg — 2012-11-08T03:09:06Z
Marked as a regression as previously (commit 16dbc68bc30ba65b24f265577e8ffa626ac9698e) compiler worked correctly for code from which is is reduced.
For this example code, compiler never worked correctly as previously it failed `static assert`:
---
void f(ref int) { }
void g()()
{
f(0); // line 5
}
void h()()
{
g!()();
}
static assert(!__traits(compiles, h!()())); // causes error
---
Errors:
---
main.d(5): Error: function conv2.f (ref int) is not callable using argument types (int)
main.d(5): Error: constant 0 is not an lvalue
---