Skip to content

Commit ab77d02

Browse files
Shati Pateljames
authored andcommitted
QL HB: Expand bindingset example [SD-3863]
(cherry picked from commit 4f2c9fa)
1 parent 6b10ddf commit ab77d02

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/language/ql-handbook/predicates.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,10 @@ multiple binding set annotations, for example::
262262
x + 1 = y
263263
}
264264

265+
from int x, int y
266+
where y = 42 and plusOne(x, y)
267+
select x, y
268+
265269
Multiple binding sets specified this way are independent of each other. The above example means:
266270
- If ``x`` is bound, then ``x`` and ``y`` are bound.
267271
- If ``y`` is bound, then ``x`` and ``y`` are bound.

0 commit comments

Comments
 (0)