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

Adding tests for ufcs fundamental types #690

Merged
merged 4 commits into from Feb 21, 2023
Merged

Adding tests for ufcs fundamental types #690

merged 4 commits into from Feb 21, 2023

Conversation

vushu
Copy link
Contributor

@vushu vushu commented Oct 23, 2022

I added more tests for UFCS and updated readme according to types

Copy link
Member

@WebFreak001 WebFreak001 left a comment

Choose a reason for hiding this comment

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

there is a problem with integer and float types here: If you have a smaller integer, like short or byte, it can get implicitly upcast into an int. So we should probably change the type matching algorithm to somehow catch these implicit casts. (e.g. a function dsymbol implicitly casts into other dsymbol)

I think for alias this'd structs we need to cover that as well.

@@ -2,4 +2,4 @@ set -e
set -u

../../bin/dcd-client $1 -c100 -I"$PWD"/fooutils file.d > actual.txt
diff actual.txt expected.txt
diff actual.txt expected.txt
Copy link
Member

Choose a reason for hiding this comment

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

removed last empty line here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm not sure what you mean, by this comment.

@vushu
Copy link
Contributor Author

vushu commented Nov 10, 2022

you are right, I haven't thought about that.

@vushu
Copy link
Contributor Author

vushu commented Feb 21, 2023

Included implicit integer upcast to matching algorithm of UFCS.

@WebFreak001 WebFreak001 merged commit 086fc5b into dlang-community:master Feb 21, 2023
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