More readable error message.
The build was successful. Details

This commit is contained in:
Rafal Kupiec 2019-05-01 20:09:55 +02:00
parent 508e8965a9
commit 5a0e4667fa
Signed by: belliash
GPG Key ID: 4E829243E0CFE6B4
1 changed files with 2 additions and 2 deletions

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;