Melt chocolate and butter in a microwave safe bowl, stirring every 30 seconds allow to cool for a few minutes. Then add sugar, vanilla, salt, Guinness and whisk until well combined. Add eggs one at a time, incorporating them completely before adding the next one. Fold in the flour. Pour into prepared pan and bake for 45 minutes, allow to cool for 2 hours or overnight before cutting.