Browse Source

Change warning message by a better one as suggested by Ralph Versteegen

mingodad 4 years ago
parent
commit
01ca8d89f3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      SquiLu/squirrel/sqcompiler.cpp

+ 1 - 1
SquiLu/squirrel/sqcompiler.cpp

@@ -1694,7 +1694,7 @@ start_again:
         case TK_BASE:
             Lex();
             if(_token == '(' && _inside_constructor)
-                Warning(_SC("calling 'base' as a function inside a constructor\n"));
+                Warning(_SC("calling 'base' as a function; did you mean base.constructor()?\n"));
             _fs->AddInstruction(_OP_GETBASE, _fs->PushTarget());
             _es.etype  = BASE;
             _es.epos   = _fs->TopTarget();