Skip to content

Commit 79c6d40

Browse files
giacomocavalierilpil
authored andcommitted
improve doc comment
1 parent c8aad75 commit 79c6d40

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

compiler-core/src/type_/expression.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4493,7 +4493,10 @@ impl<'a, 'b> ExprTyper<'a, 'b> {
44934493
location,
44944494
),
44954495

4496-
// If the argument is a regular var then we specialise.
4496+
// If the argument is a regular var then we want to add some extra
4497+
// checks. The value will be inferred regularly, but we also want to
4498+
// see if this is an argument that is being passed recursively to
4499+
// the same function that defined it!
44974500
(_, UntypedExpr::Var { location, name }) => {
44984501
self.infer_variable_call_arg(called_function, name, location, argument_index)
44994502
}

0 commit comments

Comments
 (0)