No type information when using @typeInfo().optional.child

Instead of using undefined, using &0 seems to work. so it becomes:

pub const getInstanceProcAddr: @TypeOf(@as(c.PFN_vkGetInstanceProcAddr, @ptrCast(&0)).?) = undefined;
1 Like