mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-11 18:33:14 +01:00
Fixed the type of the magic property .funcptr"
This commit is contained in:
@@ -5619,14 +5619,14 @@ Expression *TypeDelegate::dotExp(Scope *sc, Expression *e, Identifier *ident)
|
||||
#endif
|
||||
if (ident == Id::ptr)
|
||||
{
|
||||
e = new GEPExp(e->loc, e, ident, 0);
|
||||
e = new GEPExp(e->loc, e, ident, 0);
|
||||
e->type = tvoidptr;
|
||||
return e;
|
||||
}
|
||||
else if (ident == Id::funcptr)
|
||||
{
|
||||
e = new GEPExp(e->loc, e, ident, 1);
|
||||
e->type = tvoidptr;
|
||||
e->type = next->pointerTo();
|
||||
return e;
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user