mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-11 13:26:08 +03:00
Fixed lambda inference
This commit is contained in:
parent
925303e334
commit
eba8aac824
3 changed files with 17 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue