mirror of
https://github.com/github/codeql.git
synced 2025-12-22 03:36:30 +01:00
fix that type inference assumed every compound-assignment have type number
This commit is contained in:
@@ -130,13 +130,7 @@ class NumericConversion extends ImplicitConversion {
|
||||
or
|
||||
parent instanceof ArithmeticExpr and not parent instanceof AddExpr
|
||||
or
|
||||
parent instanceof CompoundAssignExpr and
|
||||
not (
|
||||
parent instanceof AssignAddExpr or
|
||||
parent instanceof AssignLogOrExpr or
|
||||
parent instanceof AssignLogAndExpr or
|
||||
parent instanceof AssignNullishCoalescingExpr
|
||||
)
|
||||
parent.(CompoundAssignExpr).isNumeric()
|
||||
or
|
||||
parent instanceof UpdateExpr
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user