//META: generated=true
//META: model=claude-opus-4-8
//META: generated_at=2026-07-02T00:00:00+00:00
//META: source_commit=8e2a63cbf22c85332796702fd02a875466486a23
//META: doc_ref=docs/generated/design/pipeline/03-semantic-check.md#generic-specialization-and-constraints
//META: doc_section_digest=22b10979ab5083a9c6d0c577210f37f6bb50a1e746c34c05d24d799e574a16a3
//META: purpose=Generic functions are specialized at the call site; the constraint solver infers the type argument from the actual argument.
//META: intent=functional
//META: pipeline_stage=check
//META: warning=Auto-generated. May drift from source. Do not edit by hand.

// The doc says the checker solves type/value/witness constraints
// to specialize generics. Verify the user-visible consequence:
// calling `id` with an int returns an int.

//TEST:INTERPRET(filecheck=CHECK):

T id<T>(T x) { return x; }

void main()
{
    // CHECK: id_int=5
    printf("id_int=%d\n", id(5));
}
