Commit 7c3b7c2a authored by Botond Baranyi's avatar Botond Baranyi
Browse files

OOP: fixed typo in error message and updated tests (issue #571)


Signed-off-by: Botond Baranyi's avatarBotond Baranyi <botond.baranyi@ericsson.com>
parent f7adf200
......@@ -3562,7 +3562,7 @@ namespace Ttcn {
}
checked = true;
if ((final && abstract) || (final && trait) || (abstract && trait)) {
error("A classes cannot have more than one of the @final, @abstract and @trait modifiers");
error("A class cannot have more than one of the @final, @abstract and @trait modifiers");
}
if (external && abstract) { // todo
error("External classes cannot be abstract");
......
......@@ -360,7 +360,7 @@ module NegSem_5010104_finalClasses_001 "TTCN-3:2018 Object-Oriented" {
<END_MODULE>
<RESULT COUNT>
error: Final classes cannot be abstract
error: A class cannot have more than one of the \@final, \@abstract and \@trait modifiers
<END_RESULT>
<END_TC>
......
......@@ -346,7 +346,7 @@ function f_create() { //^In function definition//
}
type class @final @abstract C21 { } //^In type definition// //A classes cannot have more than one of the \@final, \@abstract and \@trait modifiers//
type class @final @abstract C21 { } //^In type definition// //A class cannot have more than one of the \@final, \@abstract and \@trait modifiers//
type class @final C22 { }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment