package methods are always final

GitHub: Fixes #1308.
This commit is contained in:
David Nadlinger 2016-02-21 15:48:11 +01:00
parent c2439de2fa
commit 127381f234
2 changed files with 4 additions and 3 deletions

View file

@ -1190,10 +1190,11 @@ public:
// This is a bit more convoluted than it would need to be, because it
// has to take templated interface methods into account, for which
// isFinalFunc is not necessarily true.
// Also, private methods are always not virtual.
// Also, private/package methods are always non-virtual.
const bool nonFinal = !fdecl->isFinalFunc() &&
(fdecl->isAbstract() || fdecl->isVirtual()) &&
fdecl->prot().kind != PROTprivate;
fdecl->prot().kind != PROTprivate &&
fdecl->prot().kind != PROTpackage;
// Get the actual function value to call.
LLValue *funcval = nullptr;

@ -1 +1 @@
Subproject commit f10185e4c1b8937315cb5e2a8d10da6acf7da133
Subproject commit 832477ce05e9d8599cc365e241c62a3d5777d6c6