I have defined both records and created a union from them, but F# still complains that the constructor "Food" is not defined. What is the problem?
type Product = {Name : string; BasePrice: int}
type Size = {Medium: int; Large: int}
type Food = | Product of Product| Size of Size
let food = Food({Name = "Bagel"; BasePrice = 20}; {Medium = 10; Large = 20})
Foodis a type not a constructor, you need something likelet food = Product {Name = "Bagel"; BasePrice = 20}. Are you trying to build alist Food? - Lee