Skip to content

Commit 9d26d96

Browse files
authored
Fix span for CannotCallNonFunction error (#2443)
1 parent 4bddefd commit 9d26d96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/qsc_qasm/src/semantic/lowerer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1650,7 +1650,7 @@ impl Lowerer {
16501650

16511651
(params_ty.clone(), (**return_ty).clone())
16521652
} else {
1653-
self.push_semantic_error(SemanticErrorKind::CannotCallNonFunction(symbol.span));
1653+
self.push_semantic_error(SemanticErrorKind::CannotCallNonFunction(expr.span));
16541654
(Rc::default(), crate::semantic::types::Type::Err)
16551655
};
16561656

0 commit comments

Comments
 (0)