Fixed lambda inference

This commit is contained in:
Alexey Prokhin 2012-02-13 03:21:29 +04:00
parent 925303e334
commit eba8aac824
3 changed files with 17 additions and 6 deletions

View file

@ -5197,6 +5197,11 @@ Expression *FuncExp::inferType(Scope *sc, Type *to)
sc = scope;
}
#if IN_LLVM
if (fd->tok == TOKreserved && to->ty == Tpointer && to->nextOf()->ty == Tfunction)
fd->tok = TOKfunction;
#endif
Expression *e = NULL;
if (td)
{ /// Parameter types inference from