Odin icon indicating copy to clipboard operation
Odin copied to clipboard

Allow implicit parametric type specialization for `struct`s and `union`s

Open Airtz opened this issue 4 months ago • 0 comments

Request for enhancement.

As of dev-2025-06 this works for procs :

proc($T/[]$U) {} //OK

Whereas you have to be explicit for structs and unions :

struct($T: typeid/[]$U) {} //Error: '$U' is not a type
struct($U: typeid, $T: typeid/[]U) {} //OK

Airtz avatar Jun 15 '25 16:06 Airtz