Skip to content

Conversation

@Delta456
Copy link
Member

@Delta456 Delta456 commented Jan 13, 2021

As per the discussion operator overloading for alias with parent types as primitives are now disallowed as it cause a lot of confusion.

The test is in vlib/math/big/big_test.v.

@Delta456 Delta456 marked this pull request as draft January 13, 2021 11:02
@Delta456 Delta456 marked this pull request as ready for review January 13, 2021 14:28
@Delta456
Copy link
Member Author

Ready for review.

Copy link
Member

@danieldaeschle danieldaeschle left a comment

Choose a reason for hiding this comment

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

could you add more tests to test edge cases?

@Delta456 Delta456 marked this pull request as draft January 13, 2021 14:57
@Delta456
Copy link
Member Author

Ready for review.

@Delta456 Delta456 marked this pull request as ready for review January 14, 2021 11:51
@Delta456
Copy link
Member Author

Changes in error messages and token.Position suggested by @danieldaeschle will be done in my next PR when this is merged.

@medvednikov medvednikov merged commit 0ca36aa into vlang:master Jan 15, 2021
@Delta456 Delta456 deleted the op_alias_overloading branch January 15, 2021 03:42
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.

5 participants