Skip to content

Commit

Permalink
fix Issue 4225 - forward reference of opCall (mangle.c:81: char* mang…
Browse files Browse the repository at this point in the history
…le(Declaration*): Assertion `fd && fd->inferRetType' failed.)
  • Loading branch information
9rnsr committed Aug 10, 2014
1 parent ea848c1 commit c43a175
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions test/compilable/compile1.d
Expand Up @@ -26,6 +26,20 @@ alias typeof(Dg2438.init.funcptr) FP2438b;
static assert(is(CP2438b == void*));
static assert(is(FP2438b == void function()));

/**************************************************
4225
**************************************************/

struct Foo4225
{
enum x = Foo4225();

static Foo4225 opCall()
{
return Foo4225.init;
}
}

/**************************************************
5996 ICE(expression.c)
**************************************************/
Expand Down

0 comments on commit c43a175

Please sign in to comment.