Support calls to inherited methods without "this." prefix (GitHub issue #388).
(cherry picked from commit 55e06db693)
This commit is contained in:
parent
f0b3056bfc
commit
20c6d83ae9
|
|
@ -3536,8 +3536,10 @@ NetProc* PCallTask::elaborate_usr(Design*des, NetScope*scope) const
|
||||||
// For SystemVerilog this may be a few other things.
|
// For SystemVerilog this may be a few other things.
|
||||||
if (gn_system_verilog()) {
|
if (gn_system_verilog()) {
|
||||||
NetProc *tmp;
|
NetProc *tmp;
|
||||||
// This could be a method attached to a signal?
|
// This could be a method attached to a signal
|
||||||
tmp = elaborate_method_(des, scope);
|
// or defined in this object?
|
||||||
|
bool try_implicit_this = scope->get_class_scope() && path_.size() == 1;
|
||||||
|
tmp = elaborate_method_(des, scope, try_implicit_this);
|
||||||
if (tmp) return tmp;
|
if (tmp) return tmp;
|
||||||
// Or it could be a function call ignoring the return?
|
// Or it could be a function call ignoring the return?
|
||||||
tmp = elaborate_function_(des, scope);
|
tmp = elaborate_function_(des, scope);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue