If you ... (tell) me you were going to the beach, I'd have come with you
If you had told me you were going to the beach, I'd have come with you.