1.1 --- a/resolving.py Fri Nov 11 17:53:06 2016 +0100
1.2 +++ b/resolving.py Sat Nov 12 01:36:04 2016 +0100
1.3 @@ -124,8 +124,10 @@
1.4
1.5 "Convert the given invocation 'ref', handling instantiation."
1.6
1.7 + alias = ref.get_name()
1.8 ref = self.importer.identify(ref.get_origin())
1.9 - return ref and ref.has_kind("<class>") and ref.instance_of() or Reference("<var>")
1.10 + ref = ref and ref.has_kind("<class>") and ref.instance_of() or Reference("<var>")
1.11 + return ref and ref.alias(alias) or None
1.12
1.13 def resolve_accesses(self, path, name, ref):
1.14