trivially fix #195

probably fixed in previous libdparse
This commit is contained in:
WebFreak001 2019-11-25 16:45:46 +01:00
parent 28b32d9d77
commit 79ae2c09d0
3 changed files with 47 additions and 0 deletions

View file

@ -0,0 +1,16 @@
void main()
{
auto myTid = runTask({
auto conn = connectTCP("localhost", 4222);
auto l = Lexer(conn);
foreach (t; l)
{
}
conn.close();
});
// foo
runEventLoop();
}

17
tests/issue0195.d Normal file
View file

@ -0,0 +1,17 @@
void main()
{
auto myTid = runTask({
auto conn = connectTCP("localhost", 4222);
auto l = Lexer(conn);
foreach (t;
l)
{
}
conn.close();
});
// foo
runEventLoop();
}

View file

@ -0,0 +1,14 @@
void main() {
auto myTid = runTask({
auto conn = connectTCP("localhost", 4222);
auto l = Lexer(conn);
foreach (t; l) {
}
conn.close();
});
// foo
runEventLoop();
}