You hold a poor 4-count with both majors when partner doubles for takeout:
You bid 1H, but west competes to 3D over which partner bids 3H.
Is this invitational or merely competitive?
You pass and dummy hits with 19 points. Even if you had known that partner meant it as invitational, would you have accepted?
West leads the Ace of diamonds on which his partner discourages. He nevertheless continues the King. You ruff, and lead to the King of clubs.
What next? Can you make 4H if you had bid it? Try to plan out the play without getting all tangled up!
I think that if any two of the three suits break favorably (3-2 in spades, 3-2 in hearts, 3-3 in clubs), you can make the contract. So, 4H is odds-on. My line is to take the heart finesse now (with the jack) and discard the third diamond on the queen of clubs. If the jack falls, I have a spade discard as well, so only one spade loser. If the jack doesn't fall, I play on spades and hope they split 3-2. The full hand:
Would your line have worked?