From 79ae2c09d0b86a3d9a561c1fbf4eb4745df535ad Mon Sep 17 00:00:00 2001 From: WebFreak001 Date: Mon, 25 Nov 2019 16:45:46 +0100 Subject: [PATCH] trivially fix #195 probably fixed in previous libdparse --- tests/allman/issue0195.d.ref | 16 ++++++++++++++++ tests/issue0195.d | 17 +++++++++++++++++ tests/otbs/issue0195.d.ref | 14 ++++++++++++++ 3 files changed, 47 insertions(+) create mode 100644 tests/allman/issue0195.d.ref create mode 100644 tests/issue0195.d create mode 100644 tests/otbs/issue0195.d.ref diff --git a/tests/allman/issue0195.d.ref b/tests/allman/issue0195.d.ref new file mode 100644 index 0000000..b638abf --- /dev/null +++ b/tests/allman/issue0195.d.ref @@ -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(); +} diff --git a/tests/issue0195.d b/tests/issue0195.d new file mode 100644 index 0000000..f92a7ef --- /dev/null +++ b/tests/issue0195.d @@ -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(); +} diff --git a/tests/otbs/issue0195.d.ref b/tests/otbs/issue0195.d.ref new file mode 100644 index 0000000..85955a0 --- /dev/null +++ b/tests/otbs/issue0195.d.ref @@ -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(); +}