FFI: Resolve metamethods for constructors, too.

This commit is contained in:
Mike Pall
2012-06-20 15:15:09 +02:00
parent 126f9906fe
commit 6cee1333ef
2 changed files with 13 additions and 4 deletions

View File

@@ -178,6 +178,7 @@ collect_attrib:
if (fct && ctype_isconstval(fct->info))
return fct;
}
ct = sct; /* Allow resolving metamethods for constructors, too. */
}
}
if (ctype_isptr(ct->info)) { /* Automatically perform '->'. */