Skip to content

Commit

Permalink
Issue 16022 - assertion failure due to misplaced comma operator (addi…
Browse files Browse the repository at this point in the history
…tional test)
  • Loading branch information
JinShil committed Nov 19, 2017
1 parent 5cd0476 commit 64980c2
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 64980c2

Please sign in to comment.