You're assuming that you know which door each twin is guarding. Switch doors and use your scenario and see what happens.
Too easy. Watch this.
Let's say that
Twin A is the lying twin guarding the Hell door.
Twin B is the truth twin guarding the Heaven door. We'll assume we don't know who's the liar or what door they are guarding.
Here's the coversation.
Doubles: "Say,
Twin A, if I go ask your boy over there which one of these doors leads to heaven, which one will he say is the Heaven door?"
Twin A (who always lies): "He'll tell you that my door is the Heaven door. (This statement is a lie because the truth-telling
Twin B wouldn't say this.)
So you go to
Twin B's door to heaven. Why? You didn't ask
Twin A which door was right. You asked him what the other would say. Since
Twin A always lies, he'll lie about what
Twin B would say. His statement of "He'll tell you that my door is the Heaven door." is the lie.
Flip the script.
Doubles: Say
Twin B, if I go ask your boy over there which one of these doors leads to Heaven, which one will he say is the Heaven door.
Twin B (who always tells the truth): "He'll lie to you and say that his door is the Heaven door." (
Twin B is telling the truth about what
Twin A would say...and we all know
Twin A is going to lie.)
Twin B is now truthfully stating that
Twin A will lie about which door is the Heaven door. So you go to
Twin B's door to Heaven.