Skip to content

fix: error on silent no-op member assignment for unresolved classes#171

Merged
cs01 merged 1 commit intomainfrom
fix/silent-assignment-noop
Mar 10, 2026
Merged

fix: error on silent no-op member assignment for unresolved classes#171
cs01 merged 1 commit intomainfrom
fix/silent-assignment-noop

Conversation

@cs01
Copy link
Copy Markdown
Owner

@cs01 cs01 commented Mar 10, 2026

Summary

  • obj.field = value where obj's class couldn't be determined silently compiled to NO code — the assignment was completely dropped
  • Now calls emitError to fail at compile time instead of producing a binary with uninitialized fields
  • Affects cases like: non-class/non-object variable member assignment, method call result member assignment

Test plan

  • 444/444 node tests pass
  • 444/444 native tests pass
  • Self-hosting chain passes (--quick)

🤖 Generated with Claude Code

…esolved

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@cs01 cs01 merged commit d43a409 into main Mar 10, 2026
12 checks passed
@cs01 cs01 deleted the fix/silent-assignment-noop branch March 12, 2026 05:35
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.

1 participant