3 ms·
Don't have an answer right this minute, but I think eschewing/forbidding variables in trait would prevent the most obvious such collisions. If you can't overri
by Ygg2 13y ago
Don't have an answer right this minute, but I think eschewing/forbidding variables in trait would prevent the most obvious such collisions.
If you can't override variables, you can't silently change the structure to depend on trait order. You'd have to explicitly state order.
PS. Of course if you have several same signature methods that call super, which is generated depending on order, same problem persist. So, forbidding variables and calling super elements should deal with most "magical" interactions.