Skip to content

Conversation

kugesan1105
Copy link
Collaborator

@kugesan1105 kugesan1105 commented Oct 9, 2025

Description

image image

@kugesan1105
Copy link
Collaborator Author

obj App{
    def init{
        self.app_name = "MyApp";
    }
}

obj System{
    def run ->App{
        return App();
    }
}

def start(sys1:System){
    app = sys1.run();
    # print(app.app_name);
    app.app_name = 90;
}

Comment on lines 651 to 668
# handle member access
# pyright handle this in getDeclInfoForNameNode()
if isinstance(node_.parent, uni.AtomTrailer) and node_.parent.parent
and isinstance(node_.parent.parent, uni.Assignment) {

if node_.parent.parent.type_tag is not None {
annotation_type = self.get_type_of_expression(
node_.parent.parent.type_tag.tag
);
return self._convert_to_instance(annotation_type);
}

else { # Assignment without a type annotation: obj.member = <expr>
if node_.parent.parent.value is not None {
return self.get_type_of_expression(node_.parent.parent.value);
}
}
}
Copy link
Collaborator Author

@kugesan1105 kugesan1105 Oct 14, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

@kugesan1105
Copy link
Collaborator Author

kugesan1105 commented Oct 15, 2025

  1. cfg
  2. generics
  3. overload

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Incorrect symbol usage/connectivity +handle attribute references through self.

1 participant