Enable flat static constructor methods
These are needed to provide renamed overloaded constructors and the like.
This commit is contained in:
parent
3cfc26bc30
commit
b8f10a55f9
1 changed files with 1 additions and 1 deletions
|
|
@ -3312,7 +3312,7 @@ public:
|
||||||
Wrapper_print(f, f_wrappers);
|
Wrapper_print(f, f_wrappers);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool use_static_method = flat_static_method || !in_class || (Cmp(storage, "friend") == 0);
|
bool use_static_method = flat_static_method || !in_class || constructor || (Cmp(storage, "friend") == 0);
|
||||||
/* Now register the function with the interpreter. */
|
/* Now register the function with the interpreter. */
|
||||||
if (!Getattr(n, "sym:overloaded")) {
|
if (!Getattr(n, "sym:overloaded")) {
|
||||||
if (!builtin_self && (use_static_method || !builtin))
|
if (!builtin_self && (use_static_method || !builtin))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue