Open jrfondren opened 10 months ago
I agree that it doesn't seem like this ought to fail. The struct S
is clearly defined, and if you go take a look at the std.t
source you'll see the Vector
type is too.
Unfortunately I don't have time to dig in further right now, but it probably has something to do with Terra's ordering of compilation. If you want to help out, I'd trace through the compiler to see what difference that line makes; presumably there is some path (e.g., completing a type T
when used as &T
) that's missing that ought to be there.
In this code:
Without the commented line, compilation fails: