Skip to content

Conversation

@AryanBagade
Copy link
Contributor

Changes

  1. Added range field to ReturnExplicit struct to track the return statement location
  2. Updated binding/function.rs to pass the range when creating ReturnExplicit
  3. Added type checking in solve.rs for bare return

Testing

  • ✅ Added 3 new test cases in returns.rs
CleanShot 2025-11-07 at 10 29 00@2x

Fixes #1508

## Changes

1. Added `range` field to `ReturnExplicit` struct to track the return statement location
2. Updated `binding/function.rs` to pass the range when creating `ReturnExplicit`
3. Added type checking in `solve.rs` for bare return

## Testing
  - ✅ Added 3 new test cases in returns.rs

Fixes facebook#1508
@meta-cla meta-cla bot added the cla signed label Nov 7, 2025
@meta-codesync
Copy link

meta-codesync bot commented Nov 7, 2025

@kinto0 has imported this pull request. If you are a Meta employee, you can view this in D86550828.

Copy link
Contributor

@ndmitchell ndmitchell left a comment

Choose a reason for hiding this comment

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

Review automatically exported from Phabricator review in Meta.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Missed type error for bare return statements

3 participants