mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-26 00:23:14 +01:00
Fixed lambda inference
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user