Allow return of tuple of primitives #377

Merged
sb10q merged 1 commits from enhance/disallow-non-primitive-return into master 2024-08-17 17:37:20 +08:00
1 changed files with 2 additions and 1 deletions
Showing only changes of commit 27011f385b - Show all commits

View File

@ -337,8 +337,9 @@ impl<'a> Inferencer<'a> {
if !self.check_return_value_ty(ret_ty) { if !self.check_return_value_ty(ret_ty) {
return Err(HashSet::from([ return Err(HashSet::from([
format!( format!(
"return value of type {} must be a primitive of a tuple of primitives", "return value of type {} must be a primitive of a tuple of primitives at {:?}",
self.unifier.stringify(ret_ty), self.unifier.stringify(ret_ty),
value.location,
), ),
])) ]))
} }