Nominal type marker. Intersects a base type T with a phantom tag K so two structurally identical values (e.g. UserId vs OrderId) are not interchangeable at the type level.
T
K
UserId
OrderId
Nominal type marker. Intersects a base type
Twith a phantom tagKso two structurally identical values (e.g.UserIdvsOrderId) are not interchangeable at the type level.