Torah Temimah cites Yoma 74a.
Rav Acha bar Yaakov said: to exclude one who plays with dice… It is different there, for Scripture says “if he does not tell,” and this one is not a person of telling at all.
Even though the disqualification of a dice-player is rabbinic, the verse’s language of “yagid” is used to treat him as not a bar haggadah for purposes of the shevu’as ha-eidus korban.
Category B — Textual / lexical / linguistic method
Method — The Gemara uses “אִם לֹא יַגִּיד” to exclude a person who is not legally fit to give testimony at all. The cited case is a dice-player: because he is not a “bar haggadah,” his false silence does not create this shevu’as ha-eidus offering liability.
Textual trigger — “אִם לֹא יַגִּיד,” explained as excluding one who is “לָאו בַּר הַגָּדָה” (Yoma 74a).