mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 21:21:48 +03:00
Merge pull request #7832 from WalterBright/chain-test
add test for Throwable.opApply() merged-on-behalf-of: Mike Franklin <JinShil@users.noreply.github.com>
This commit is contained in:
commit
7652a2bcee
1 changed files with 9 additions and 0 deletions
|
@ -379,6 +379,15 @@ void bug1513b()
|
|||
assert(e.msg == "d");
|
||||
assert(e.next.msg == "f");
|
||||
assert(!e.next.next);
|
||||
int i;
|
||||
foreach (u; e)
|
||||
{
|
||||
if (i)
|
||||
assert(u.msg == "f");
|
||||
else
|
||||
assert(u.msg == "d");
|
||||
++i;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue