Address review comments

This commit is contained in:
Tom Hvitved
2025-10-23 20:17:28 +02:00
parent 65b706ab80
commit ff31f0e3df
2 changed files with 3 additions and 3 deletions

View File

@@ -619,7 +619,7 @@ private predicate typeEquality(AstNode n1, TypePath prefix1, AstNode n2, TypePat
)
)
or
// an array list expression (`[1, 2, 3]`) has the type of the element
// an array list expression with only one element (such as `[1]`) has type from that element
n1 =
any(ArrayListExpr ale |
ale.getAnExpr() = n2 and

View File

@@ -2730,8 +2730,8 @@ mod if_expr {
S(2)
};
// This code exhibits an explosion in type inference when type information is propagated
// from an `if` expression to its branches.
// This code would result in an explosion in type inference, if type information was
// propagated between branches.
let x = S(1);
if b {
let x = x.m2(); // $ target=m2