You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
S :: struct(T: type)
{
data: T,
// data2: []T,// data3: [dynamic]T,// data4: int,// Any of these fields crash it.// data: T,// (Incidentally, it also crashes, after showing the redeclaration error message// if you use the same name for more than one field.)
}
func :: proc(s: S($T))
{
}
// Change to `s: ^S($T)` and it doesn't crash, but it gives a weird error.
main :: proc() {
s: S(int);
func(s.data);
}