What happens when passing a triangle to the shape union area function?

A small TypeScript pattern that often slips through reviews. You define a union, handle a couple of cases, and move on. Later, a new variant gets introduced. Nothing crashes immedi