From d23d0109179adf391052e2cdcc6c2e95b2976940 Mon Sep 17 00:00:00 2001 From: Jakub Doka Date: Fri, 25 Oct 2024 16:08:20 +0200 Subject: [PATCH] fixing eror message --- lang/src/son.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lang/src/son.rs b/lang/src/son.rs index 31bb182..6ef6a54 100644 --- a/lang/src/son.rs +++ b/lang/src/son.rs @@ -2466,7 +2466,7 @@ impl<'a> Codegen<'a> { expr.pos(), fa!( "intcast is inferred to output '{}', which is not an integer", - self.ty_display(val.ty) + self.ty_display(ty) ), ); }