What does this program print?

from Pattern matching
C# 14 / .NET 10 intermediate 2 min

What does this program print?

csharp
using System;

Purchase order = new(1_500m);

string label = order switch
{
    Purchase item when item.Total > 0m => "positive",
    { Total: >= 1_000m } => "large",
    _ => "invalid"
};

Console.WriteLine(label);

public sealed record Purchase(decimal Total);
Open in playground
Report an error