From 48af91375ad9466874d516543641c4ff68d9936e Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Sun, 28 Apr 2024 16:43:00 +0200 Subject: rebel-lang: typing: fix Type::ast_stmt_type() parameter name --- crates/rebel-lang/src/typing.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crates') diff --git a/crates/rebel-lang/src/typing.rs b/crates/rebel-lang/src/typing.rs index 5309e76..5b62cd9 100644 --- a/crates/rebel-lang/src/typing.rs +++ b/crates/rebel-lang/src/typing.rs @@ -78,8 +78,8 @@ impl Type { }) } - pub fn ast_stmt_type(ctx: &Context, expr: &ast::BodyStmt<'_>) -> Result { - match expr { + pub fn ast_stmt_type(ctx: &Context, stmt: &ast::BodyStmt<'_>) -> Result { + match stmt { ast::BodyStmt::Assign { dest: _, expr } => { // TODO: Assignability, dest type let dest_type = Type::Free; -- cgit v1.2.3