Skip to content

Commit

Permalink
[move-compiler-v2] clean up a few remaining issues in lambda parser/f…
Browse files Browse the repository at this point in the history
…ront-end code (#15365)

- Distinguish between "not supported" and "not implemented" for lambda features.
- Add a test case to illustrate the function name aliasing issue ([Bug][move-compiler-v2] visible function names shadow local variables with same name in function calls #15360), but changed other tests here to avoid it.
- Remove Constraint::NoFunction as it's too broad.
- Make sure there are still errors for all planned unsupported cases
- Fix LambdaLifter case for bound free variable without copy.
- Refine lambda test cases to make _ok versions that compile up to "not implemented" errors.
  • Loading branch information
brmataptos authored Dec 4, 2024
1 parent 966452a commit c6f5752
Show file tree
Hide file tree
Showing 38 changed files with 10,999 additions and 484 deletions.
38 changes: 33 additions & 5 deletions third_party/move/move-compiler-v2/src/bytecode_generator.rs
8 changes: 0 additions & 8 deletions third_party/move/move-compiler-v2/tests/lambda/lambda.exp
5,456 changes: 5,456 additions & 0 deletions third_party/move/move-compiler-v2/tests/lambda/storable/closure_args.lambda.exp
1,909 changes: 1,909 additions & 0 deletions third_party/move/move-compiler-v2/tests/lambda/storable/registry_ok2.lambda.exp
40 changes: 4 additions & 36 deletions third_party/move/move-model/src/ty.rs

0 comments on commit c6f5752

Please sign in to comment.