Community
Participate
Working Groups
If an inferred callout to field would require lifting the expression is still resolved to the type of the base field, resulting in a compile time type error.
Created attachment 191062 [details] test & proposed fix This patch basically does for FieldReference what we already did in SingleNameReference since http://trac.objectteams.org/ot/changeset/23111 Note, that qualified name references (a.b.c) and nested field references (this.a.b) do not support lifting c-t-f for intermediate fields, since we don't have an expected type as we use it for c-t-f inference. (E.g., when resolving this.a we don't know what type to expect).
Committed for 0.8M6 as r1408/9
Verified using build 201106070730