Skip to content

Fix CommonType template to no longer assume typeof(type) == _error_#7663

Closed
UplinkCoder wants to merge 1 commit intodlang:masterfrom
UplinkCoder:fix_commontype
Closed

Fix CommonType template to no longer assume typeof(type) == _error_#7663
UplinkCoder wants to merge 1 commit intodlang:masterfrom
UplinkCoder:fix_commontype

Conversation

@UplinkCoder
Copy link
Member

This enables us to introduce a type of types in the future

This enables us to introduce a type of types in the future
@dlang-bot
Copy link
Contributor

Thanks for your pull request, @UplinkCoder!

Bugzilla references

Your PR doesn't reference any Bugzilla issue.

If your PR contains non-trivial changes, please reference a Bugzilla issue or create a manual changelog.

Testing this PR locally

If you don't have a local development environment setup, you can use Digger to test this PR:

dub run digger -- build "master + phobos#7663"

@UplinkCoder
Copy link
Member Author

@andralex you might be interested in this one.

@UplinkCoder
Copy link
Member Author

The build seems to fail because of template emission bugs ...

@thewilsonator
Copy link
Contributor

A fix should come with a test case, I cannot tell from the context why the clause that follows does not already cover the case added.

@atilaneves
Copy link
Contributor

What @thewilsonator said.

@UplinkCoder
Copy link
Member Author

UplinkCoder commented Oct 27, 2020 via email

@atilaneves
Copy link
Contributor

Then there's no reason for this to exist right now.

@UplinkCoder
Copy link
Member Author

UplinkCoder commented Oct 27, 2020 via email

@Geod24
Copy link
Member

Geod24 commented Oct 27, 2020

There can't be a testcase unless typefunctions are in a preview switch

Then raise a PR with a functioning preview switch for it.
It's impossible for someone to review a change based on a bug they haven't see, or a feature they don't know about.
On the other hand, it's very easy to envision that things will work one way, and realize at the end that they didn't.

If you raise small and intermediate PRs, that's only useful if they have intrinsic values, or if they implement a small part of a much larger feature that is already visible to the reviewer.

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

Comments