Covariant return types fixes
Any method which hides a base method is marked (for C# 'new' method modifier) git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7209 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
d8c140e82a
commit
d00a8ee60f
2 changed files with 108 additions and 75 deletions
|
|
@ -1577,6 +1577,8 @@ class CSHARP : public Language {
|
|||
Printf(function_code, "override ");
|
||||
else if (checkAttribute(n, "storage", "virtual"))
|
||||
Printf(function_code, "virtual ");
|
||||
if (Getattr(n, "hides"))
|
||||
Printf(function_code, "new ");
|
||||
|
||||
Printf(function_code, "%s %s(", return_type, proxy_function_name);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue