Browse Source

More readable error message.

release/v0.1
Rafal Kupiec 1 year ago
parent
commit
5a0e4667fa
Signed by: belliash GPG Key ID: 4E829243E0CFE6B4
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      engine/compiler.c

+ 2
- 2
engine/compiler.c View File

@ -3180,8 +3180,8 @@ static sxi32 PH7_GenStateCompileClassMethod(
}
if((pClass->iFlags & PH7_CLASS_VIRTUAL) == 0) {
PH7_GenCompileError(pGen, E_ERROR, nLine,
"Class '%z' contains virtual method and must therefore be declared virtual or implement the remaining method '%z::%z()'",
&pClass->sName, &pClass->sName, pName);
"A method '%z::%z()' cannot be declared as virtual in non-virtual class",
&pClass->sName, pName);
}
/* Assemble method signature only */
doBody = FALSE;

Loading…
Cancel
Save