mirror of
https://github.com/github/codeql.git
synced 2026-01-24 03:42:59 +01:00
15 lines
193 B
Ruby
15 lines
193 B
Ruby
class A
|
|
def m1(&block)
|
|
r = block.call() # $ MISSING: hasValueFlow=1
|
|
sink r
|
|
end
|
|
|
|
def m2
|
|
sink yield # $ hasValueFlow=2
|
|
end
|
|
end
|
|
|
|
A.new.m1 { source(1) }
|
|
|
|
A.new.m2 { source(2) }
|