Fix type reification of Data

This commit is contained in:
KtorZ 2024-09-13 18:32:49 +02:00
parent 4fb13af49f
commit 9cf908d07f
No known key found for this signature in database
GPG Key ID: 33173CB6F77F4277
1 changed files with 7 additions and 0 deletions

View File

@ -1138,6 +1138,13 @@ impl UntypedExpr {
..
}) = lookup_data_type_by_tipo(data_types, tipo)
{
if constructors.is_empty() {
return Ok(UntypedExpr::Var {
location: Span::empty(),
name: "Data".to_string(),
});
}
let constructor = &constructors[ix];
typed_parameters