Skip to content

Commit

Permalink
Merge pull request #7338 from JinShil/fix_16022
Browse files Browse the repository at this point in the history
Issue 16022 - assertion failure due to misplaced comma operator (additional test)
merged-on-behalf-of: Iain Buclaw <ibuclaw@gdcproject.org>
  • Loading branch information
dlang-bot authored Nov 20, 2017
2 parents 4efa21e + 64980c2 commit f6c2fbf
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions test/runnable/xtest46.d
Original file line number Diff line number Diff line change
Expand Up @@ -7853,6 +7853,19 @@ bool test16022()
return type == Type.Colon, type == Type.Comma;
}

bool test16022_structs()
{
struct A
{
int i;
string s;
}

enum Type { Colon = A(0, "zero"), Comma = A(1, "one") }
Type type;
return type == Type.Colon, type == Type.Comma;
}

/***************************************************/
// https://issues.dlang.org/show_bug.cgi?id=16233

Expand Down

0 comments on commit f6c2fbf

Please sign in to comment.