Mercurial > projects > dang
changeset 31:d14705a06bdd new_gen
Declarations.d/visitMemberLookup: Use the loc of the lookup, rather than the types loc
author | Anders Halager <halager@gmail.com> |
---|---|
date | Sun, 20 Apr 2008 12:03:13 +0200 |
parents | 3147a52d1247 |
children | 7f4de5b5166c 5a1a752b3068 |
files | sema/Declarations.d |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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); } }