Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests: add checker and passing test for generic indexing #20036

Merged
merged 3 commits into from Nov 29, 2023

Conversation

Delta456
Copy link
Member

@Delta456 Delta456 commented Nov 29, 2023

Add failing and passing tests from #19949

🤖[deprecated] Generated by Copilot at 25209d0

Add test cases for slicing with generic structs and pointers. Fix a bug in the checker that allowed slicing on mutable generic structs, which is not supported.

🤖[deprecated] Generated by Copilot at 25209d0

  • Add a test case for an invalid use of slicing with a mutable generic struct (link,link)
  • Expect an error message that mut Heap does not support slicing (link)
  • Add a test case for a valid use of slicing with pointers to generic instances (link)

@spytheman spytheman merged commit fed3552 into vlang:master Nov 29, 2023
49 checks passed
@Delta456 Delta456 deleted the add_generic_index_test branch November 29, 2023 16:30
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.

None yet

2 participants