Expected result: a clear error message that explains what is wrong
Actual result: compiler crashes
If one of the two members is a pointer (e.g. foo: Foo*), this works as expected. You must use a pointer somewhere, just like in C, but if you don't, there should be a clear error message.
Expected result: a clear error message that explains what is wrong Actual result: compiler crashes
If one of the two members is a pointer (e.g.
foo: Foo*
), this works as expected. You must use a pointer somewhere, just like in C, but if you don't, there should be a clear error message.