# HG changeset patch # User Anders Halager # Date 1208685793 -7200 # Node ID d14705a06bdd9827b5dbc1c8f11f640af40aede3 # Parent 3147a52d12477d807e5b3c8278b6c3a6a5c47755 Declarations.d/visitMemberLookup: Use the loc of the lookup, rather than the types loc diff -r 3147a52d1247 -r d14705a06bdd sema/Declarations.d --- a/sema/Declarations.d Sun Apr 20 11:53:40 2008 +0200 +++ b/sema/Declarations.d Sun Apr 20 12:03:13 2008 +0200 @@ -57,7 +57,8 @@ throw error(__LINE__, "Undefined member in %0 with type %1") .arg(target.get) .arg(st.name) - .loc(st.getLoc); + .loc(target.token.location) + .loc(child.token.location); } }