[COMPILER]
* NEW: A symbol followed by a point is never interpreted as a function if it is used as a function name in the current class. git-svn-id: svn://localhost/gambas/trunk@6856 867c0c6c-44f3-4631-809d-bfa615b0a4ec
This commit is contained in:
parent
91c05679d3
commit
825eb39923
1 changed files with 3 additions and 0 deletions
|
@ -235,6 +235,9 @@ static void trans_identifier(int index, bool point, PATTERN next)
|
|||
is_static = TYPE_is_static(sym->global.type);
|
||||
is_func = type == TK_FUNCTION;
|
||||
|
||||
if (is_func && PATTERN_is_point(next))
|
||||
goto __CLASS;
|
||||
|
||||
if (!is_static && TYPE_is_static(JOB->func->type))
|
||||
THROW("Dynamic symbols cannot be used in static function");
|
||||
|
||||
|
|
Loading…
Reference in a new issue