Another fixes to OOP-related error reporting.
All checks were successful
The build was successful.

This commit is contained in:
2019-05-30 20:18:20 +02:00
parent feba01eb49
commit 53199cac4e
3 changed files with 4 additions and 4 deletions

View File

@@ -3458,7 +3458,7 @@ static sxi32 PH7_GenStateCompileClassMethod(
/* Only method signature is allowed */
if(pGen->pIn < pGen->pEnd && (pGen->pIn->nType & PH7_TK_SEMI /* ';'*/) == 0) {
PH7_GenCompileError(pGen, E_ERROR, pGen->pIn->nLine,
"Interface method '%z::%z()' cannot contain body", &pClass->sName, pName);
"Interface or virtual method '%z::%z()' cannot contain body", &pClass->sName, pName);
}
}
/* Store method return data type */