control whether checking for type-equivalence generates warnings

This commit is contained in:
Vern Paxson 2021-02-27 10:55:19 -08:00
parent 45b9371e38
commit c7234713b1
2 changed files with 13 additions and 10 deletions

View file

@ -447,9 +447,10 @@ public:
{ yield = nullptr; flavor = arg_flav; }
int MatchesIndex(detail::ListExpr* index) const override;
bool CheckArgs(const TypePList* args, bool is_init = false) const;
bool CheckArgs(const TypePList* args, bool is_init = false,
bool do_warn = true) const;
bool CheckArgs(const std::vector<TypePtr>& args,
bool is_init = false) const;
bool is_init = false, bool do_warn = true) const;
const TypeListPtr& ParamList() const
{ return arg_types; }