fix wrong completion for if variable initialized with an array (#565)

fix wrong completion for if variable initialized with an array
merged-on-behalf-of: BBasile <BBasile@users.noreply.github.com>
This commit is contained in:
BBasile 2018-12-31 00:11:44 +01:00 committed by The Dlang Bot
parent 6d72497a09
commit 216275ead9
5 changed files with 18 additions and 2 deletions

@ -1 +1 @@
Subproject commit 913e1f1207f2488400e383d9e74219eb706fdb05
Subproject commit 4606b1608e77af7df58e5d03e18327f623ec25e9

View File

@ -7,7 +7,7 @@
],
"license": "GPL-3.0",
"dependencies": {
"dsymbol": "~>0.5.6",
"dsymbol": "~>0.5.7",
"libdparse": "~>0.10.10",
"msgpack-d": "~>1.0.0-beta.7",
"stdx-allocator": "~>2.77.5"

View File

@ -0,0 +1,10 @@
identifiers
alignof k
dup k
idup k
init k
length k
mangleof k
ptr k
sizeof k
stringof k

View File

@ -0,0 +1 @@
module m; void foo(){if(const s = "string"){s.}}

5
tests/tc_if_auto_array/run.sh Executable file
View File

@ -0,0 +1,5 @@
set -e
set -u
../../bin/dcd-client $1 file.d -c46 > actual.txt
diff actual.txt expected.txt