From 9b06e92b572702c15df76fc41344d37e042e3fe8 Mon Sep 17 00:00:00 2001 From: Basile Burg Date: Tue, 13 Jun 2017 06:59:00 +0200 Subject: [PATCH] fix #386 - No ddoc hints for the unions --- dub.json | 4 ++-- libdparse | 2 +- tests/tc053/expected.txt | 1 + tests/tc053/file.d | 1 + tests/tc053/run.sh | 5 +++++ 5 files changed, 10 insertions(+), 3 deletions(-) create mode 100644 tests/tc053/expected.txt create mode 100644 tests/tc053/file.d create mode 100755 tests/tc053/run.sh diff --git a/dub.json b/dub.json index 7c49380..8cddddb 100644 --- a/dub.json +++ b/dub.json @@ -1,14 +1,14 @@ { "name": "dcd", "description": "The D Completion Daemon is an auto-complete program for the D programming language", - "copyright": "Copyright © 2015-2016, Brian Schott", + "copyright": "Copyright © 2015-2017, Brian Schott", "authors": [ "Brian Schott" ], "license": "GPL-3.0", "dependencies": { "dsymbol": "~>0.2.1-alpha.2", - "libdparse": "~>0.7.1-beta.1", + "libdparse": "~>0.7.1-beta.4", "msgpack-d": "~>1.0.0-beta.3" }, "versions": ["built_with_dub"], diff --git a/libdparse b/libdparse index 48c6e39..5e81535 160000 --- a/libdparse +++ b/libdparse @@ -1 +1 @@ -Subproject commit 48c6e39785a8bc2aeda7bacbc2c6bda68612e735 +Subproject commit 5e81535d0aff4ceec2cbf03f5b02a31ae6d3fec2 diff --git a/tests/tc053/expected.txt b/tests/tc053/expected.txt new file mode 100644 index 0000000..765140b --- /dev/null +++ b/tests/tc053/expected.txt @@ -0,0 +1 @@ +U diff --git a/tests/tc053/file.d b/tests/tc053/file.d new file mode 100644 index 0000000..c2d9bd6 --- /dev/null +++ b/tests/tc053/file.d @@ -0,0 +1 @@ +/**U*/union Un{} Un u; diff --git a/tests/tc053/run.sh b/tests/tc053/run.sh new file mode 100755 index 0000000..97d0709 --- /dev/null +++ b/tests/tc053/run.sh @@ -0,0 +1,5 @@ +set -e +set -u + +../../bin/dcd-client $1 file.d -c19 -d > actual.txt +diff actual.txt expected.txt