Skip to content

Commit

Permalink
Merge pull request ethereum#4163 from sifmelcara/fix-visibility-assert
Browse files Browse the repository at this point in the history
Fix assert message about function visibility
  • Loading branch information
chriseth authored May 21, 2018
2 parents 5157c10 + 3cd5786 commit e97f9b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libsolidity/ast/AST.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ FunctionTypePointer FunctionDefinition::functionType(bool _internal) const
case Declaration::Visibility::External:
return {};
default:
solAssert(false, "visibility() should not return a Visibility");
solAssert(false, "visibility() should return a Visibility");
}
}
else
Expand All @@ -328,7 +328,7 @@ FunctionTypePointer FunctionDefinition::functionType(bool _internal) const
case Declaration::Visibility::External:
return make_shared<FunctionType>(*this, _internal);
default:
solAssert(false, "visibility() should not return a Visibility");
solAssert(false, "visibility() should return a Visibility");
}
}

Expand Down

0 comments on commit e97f9b6

Please sign in to comment.