Make the Pastry. Place the flour in a large bowl. Add the butter and work it into the flour with your hands until the butter is broken down into pea-sized chunks. Add the sugar and the pinch of salt, then the egg and the yolks, and mix just until a dough forms. Wrap it and chill for at least 1 hour in the fridge.
Make the Chocolate Cream. While the pastry chills, make the chocolate filling. Gently heat the milk in a small saucepan over medium-low heat just until bubbles form along the sides of the pan, do not bring it to a boil. While it warms up, in a medium bowl, whisk together the yolks, sugar, and cornstarch until smooth. Pour the hot milk over the yolk mixture while whisking, then pour everything back into the pan. Cook this mixture over medium low heat, stirring constantly, until it thickens, about 2 to 4 minutes. Add the chocolate into the hot cream and stir until thick and glossy. Let it simmer for 1 minute, then let it cool slightly while you roll out the shortcrust.
Assemble. Cut off about two thirds of the chilled shortcrust pastry dough. Reserve the remaining third in the fridge. That will be used for the lattice. For the bottom crust,on a lightly floured surface, roll the dough out so it’s about ¼-inch thick and slightly larger than your tart pan. Gently drape the dough over the pan and use your hands to firmly press it into the bottom, sides and corners of the pan. Trim off any excess, then spread the chocolate cream into the pan, smoothing the top with an off set spatula.
Make the lattice. Using the reserved dough and any scraps, roll it out to ¼-inch thickness, then use a fluted cutter to cut it into strips. Set them on top of the chocolate cream in an overlapping lattice pattern, you may not need all the strips.
Bake at 180°C (350°F) for 40–45 minutes, until the lattice is golden.
Let the tart cool completely. If desired, dust the top with powdered sugar, then place dark chocolate diamonds right on top, in between the lattice. Make sure it's fully cooled before slicing so the cream sets.