Skip to content

Commit

Permalink
Merge pull request #485 from BBasile/issue-484
Browse files Browse the repository at this point in the history
fix #484 - no completion for variable declared in the `IfCondition`s
merged-on-behalf-of: BBasile <BBasile@users.noreply.github.com>
  • Loading branch information
dlang-bot authored May 14, 2018
2 parents e687c0e + 94c8670 commit 351f4c3
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 5 deletions.
2 changes: 1 addition & 1 deletion containers
2 changes: 1 addition & 1 deletion dsymbol
4 changes: 2 additions & 2 deletions dub.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
],
"license": "GPL-3.0",
"dependencies": {
"dsymbol": "~>0.3.6",
"libdparse": "~>0.8.1",
"dsymbol": "~>0.3.7",
"libdparse": "~>0.8.5",
"msgpack-d": "~>1.0.0-beta.3",
"stdx-allocator": "~>2.77.0"
},
Expand Down
8 changes: 8 additions & 0 deletions tests/tc_if_var/expected.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
identifiers
alignof k
init k
mangleof k
max k
min k
sizeof k
stringof k
1 change: 1 addition & 0 deletions tests/tc_if_var/file.d
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
void foo(){ if (int i = call()){ i. } }
5 changes: 5 additions & 0 deletions tests/tc_if_var/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 -c37 > actual.txt
diff actual.txt expected.txt

0 comments on commit 351f4c3

Please sign in to comment.