mirror of
https://github.com/github/codeql.git
synced 2026-04-27 09:45:15 +02:00
Add change note
This commit is contained in:
14
ruby/ql/lib/change-notes/2022-12-14-constructor-flow.md
Normal file
14
ruby/ql/lib/change-notes/2022-12-14-constructor-flow.md
Normal file
@@ -0,0 +1,14 @@
|
||||
---
|
||||
category: majorAnalysis
|
||||
---
|
||||
* Flow through `initialize` constructors is now taken into account. For example, in
|
||||
```rb
|
||||
class C
|
||||
def initialize(x)
|
||||
@field = x
|
||||
end
|
||||
end
|
||||
|
||||
C.new(y)
|
||||
```
|
||||
there will be flow from `y` to the field `@field` on the constructed `C` object.
|
||||
Reference in New Issue
Block a user