summaryrefslogtreecommitdiffstats
path: root/crates/rebel-lang/src/typing.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/rebel-lang/src/typing.rs')
-rw-r--r--crates/rebel-lang/src/typing.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/crates/rebel-lang/src/typing.rs b/crates/rebel-lang/src/typing.rs
index 70fc759..140b8cb 100644
--- a/crates/rebel-lang/src/typing.rs
+++ b/crates/rebel-lang/src/typing.rs
@@ -330,10 +330,8 @@ impl Type {
}
fn path_expr_type(ctx: &Context, path: &ast::Path<'_>) -> Result<Type> {
- use Type::*;
-
if path.components == [ast::Ident { name: "_" }] {
- return Ok(Free);
+ return Err(TypeError);
}
ctx.vars