Skip to content

Commit

Permalink
fix wrong completion for if variable initialized with an array (#565)
Browse files Browse the repository at this point in the history
fix wrong completion for if variable initialized with an array
merged-on-behalf-of: BBasile <BBasile@users.noreply.github.com>
  • Loading branch information
bbasile authored and dlang-bot committed Dec 30, 2018
1 parent 6d72497 commit 216275e
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dsymbol
2 changes: 1 addition & 1 deletion dub.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
10 changes: 10 additions & 0 deletions tests/tc_if_auto_array/expected.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
identifiers
alignof k
dup k
idup k
init k
length k
mangleof k
ptr k
sizeof k
stringof k
1 change: 1 addition & 0 deletions tests/tc_if_auto_array/file.d
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module m; void foo(){if(const s = "string"){s.}}
5 changes: 5 additions & 0 deletions tests/tc_if_auto_array/run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
set -e
set -u

../../bin/dcd-client $1 file.d -c46 > actual.txt
diff actual.txt expected.txt

0 comments on commit 216275e

Please sign in to comment.