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

fix typo in assertion #6911

Merged
merged 1 commit into from Jun 17, 2017
Merged

fix typo in assertion #6911

merged 1 commit into from Jun 17, 2017

Conversation

MartinNowak
Copy link
Member

No description provided.

@@ -610,7 +610,7 @@ extern (C++) Expression Expression_optimize(Expression e, int result, bool keepL
// https://issues.dlang.org/show_bug.cgi?id=16980
cdfrom.size(e.loc);
assert(cdfrom.sizeok == SIZEOKdone);
assert(cdto.sizeok == SIZEOKdone || !cdto.isBaseOf(cdto, null));
assert(cdto.sizeok == SIZEOKdone || !cdto.isBaseOf(cdfrom, null));
Copy link
Member

Choose a reason for hiding this comment

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

I knew it!

@WalterBright
Copy link
Member

Shouldn't there be a test case?

@ibuclaw
Copy link
Member

ibuclaw commented Jun 17, 2017

@WalterBright, the test case was in #6412. I gave attention to this because the assert doesn't catch what it was intended for.

@MartinNowak MartinNowak merged commit c10719d into dlang:master Jun 17, 2017
@MartinNowak MartinNowak deleted the fixup6412 branch June 17, 2017 11:08
tramker pushed a commit to tramker/dmd that referenced this pull request Dec 14, 2017
fix typo in assertion

cherry-picked-by: Martin Krejcirik <mk@krej.cz>
@ibuclaw ibuclaw removed their assignment Dec 27, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants