Skip to content

Conversation

go-wyvern
Copy link
Member

@Copilot Copilot AI review requested due to automatic review settings July 24, 2025 07:09
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes a bug in the genWorkClasses function where the source parameter was missing from StructLit initialization for work classes. The fix addresses issue #30 by ensuring that source information is properly included when creating struct literals.

  • Adds lookup of the class node source information using parent.lookupClassNode(spt)
  • Updates Val() calls to include the source parameter for both indexGame and recv
Comments suppressed due to low confidence (1)

cl/classfile.go:577

  • [nitpick] The variable name 'src' is too abbreviated and could be ambiguous. Consider using a more descriptive name like 'sourceNode' or 'classSource' to improve code readability.
		src := parent.lookupClassNode(spt)

@visualfc visualfc merged commit be8570a into goplus:main Jul 24, 2025
23 checks passed
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.

struct called "Plat" will cause a crash
2 participants