summaryrefslogtreecommitdiffstats
path: root/crates
diff options
context:
space:
mode:
Diffstat (limited to 'crates')
-rw-r--r--crates/rebel-lang/src/typing.rs4
1 files changed, 2 insertions, 2 deletions
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<Type> {
- match expr {
+ pub fn ast_stmt_type(ctx: &Context, stmt: &ast::BodyStmt<'_>) -> Result<Type> {
+ match stmt {
ast::BodyStmt::Assign { dest: _, expr } => {
// TODO: Assignability, dest type
let dest_type = Type::Free;