Tag with no args in error msgs (#471)

This commit is contained in:
Sébastien Besnier 2020-09-05 08:42:40 +02:00
parent 9170f126ac
commit f319fdad79
4 changed files with 45 additions and 6 deletions

View file

@ -758,7 +758,10 @@ pub fn constrain_expr(
Box::new(Type::Variable(*ext_var)),
),
expected.clone(),
Category::TagApply(name.clone()),
Category::TagApply {
tag_name: name.clone(),
args_count: arguments.len(),
},
region,
);
let ast_con = Eq(