[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:
Benoît Minisini 2015-01-22 22:46:11 +00:00
parent 91c05679d3
commit 825eb39923

View file

@ -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");