In the first act of The Ninth Gate, Liana Telfer comes to visit protagonist Dean Corso in his apartment, to try to recover her husband's book.
During their few minutes of verbal jousting, Telfer proposes that they stage a theft of the book. Corso replies
This has happened before someplace.
and Liana says
I know. In the movies.
Corso then mentions a lady having a gun in her stockings, and Liana hikes up her skirt to unsettle (or seduce) him, revealing that although she's wearing stockings, she has no gun.
Is there a real-life movie that they're referring to? If so, what's the scene from it that they are comparing themselves to, and how closely does it match? Is this some kind of meta-homage by Polanski?