//META: generated=true
//META: model=claude-opus-4-7
//META: generated_at=2026-05-21T08:00:00+00:00
//META: source_commit=2964da04de136705348240f2bd9affa5f3818226
//META: doc_ref=source/slang/slang-diagnostics.lua
//META: doc_section_digest=7317207c86ffe985dcc964d801586dec4290eb69f792ec848261e1f293536983
//META: purpose=Fires diagnostic E30902 (optional-cannot-wrap-resource-type) -- 'Optional<T>' cannot wrap a resource or opaque type
//META: intent=negative
//META: pipeline_stage=check
//META: catalog_code=30902
//META: catalog_name=optional-cannot-wrap-resource-type
//META: warning=Auto-generated. May drift from source. Do not edit by hand.

//DIAGNOSTIC_TEST:SIMPLE(diag=CHECK,non-exhaustive):

Optional<Texture2D> t;
[shader("compute")][numthreads(1,1,1)]
void main() {}


// CHECK: E30902
