He wished he had been able to swim.(Refers to past) He wishes he could swim. (Refers to present) He wished he had had a dog.(Past) He wishes he had had a dog.(Past) He wishes he had a dog.(Present) I wish you wouldn't tell him.(Present) I wish you hadn't told him.(Past) I wished you hadn't told him.(Past)