diff options
Diffstat (limited to 'crates/rebel-lang/src/typing.rs')
-rw-r--r-- | crates/rebel-lang/src/typing.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/crates/rebel-lang/src/typing.rs b/crates/rebel-lang/src/typing.rs index ebb3116..6d8ee8b 100644 --- a/crates/rebel-lang/src/typing.rs +++ b/crates/rebel-lang/src/typing.rs @@ -264,11 +264,10 @@ impl Type { return Ok(Free); } - ctx.values + ctx.vars .lookup(&path.components) - .map(|(typ, _)| typ) + .map(|var| var.inferred_type.clone()) .ok_or(TypeError) - .cloned() } fn check_string_piece(ctx: &Context, piece: &ast::StrPiece, kind: ast::StrKind) -> Result<()> { |