Files
codeql/ruby/ql/lib/change-notes/2022-12-14-constructor-flow.md
2022-12-14 16:30:18 +01:00

272 B

category
category
majorAnalysis
  • Flow through initialize constructors is now taken into account. For example, in
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.