Unverified Commit d47ff005 authored by Lenard Nagy's avatar Lenard Nagy Committed by GitHub
Browse files

Merge pull request #154 from ppank5/master

Bugfix: bug 568742
parents f04bb339 08c39174
......@@ -3478,7 +3478,7 @@ namespace Ttcn {
local_id.get_dispname().c_str());
}
else if (base_func->get_visibility() == NOCHANGE &&
(local_func->get_visibility() != PUBLIC || local_func->get_visibility() != NOCHANGE)) {
local_func->get_visibility() != PUBLIC && local_func->get_visibility() != NOCHANGE) {
local_def->error("Protected methods can be only overridden by "
"public or protected methods `%s'", local_id.get_dispname().c_str());
}
......
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