Skip to content

Commit

Permalink
Merge pull request #601 from Basile-z/issue-600
Browse files Browse the repository at this point in the history
fix #600 - Wrong scope for parameter solving in nested funcs
merged-on-behalf-of: Basile-z <Basile-z@users.noreply.github.com>
  • Loading branch information
dlang-bot authored May 12, 2019
2 parents afb2113 + abd29bc commit 3bfab29
Show file tree
Hide file tree
Showing 7 changed files with 40 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dsymbol
Submodule dsymbol updated 1 files
+2 −2 dub.json
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.7.0",
"libdparse": "~>0.11.4",
"dsymbol": "~>0.8.0",
"libdparse": "~>0.12.0",
"msgpack-d": "~>1.0.0-beta.7",
"stdx-allocator": "~>2.77.5",
"emsi_containers": "~>0.8.0-alpha.15"
Expand Down
2 changes: 1 addition & 1 deletion libdparse
8 changes: 8 additions & 0 deletions tests/tc_erroneous_body_content/expected1.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
identifiers
alignof k
b v
init k
mangleof k
sizeof k
stringof k
tupleof k
8 changes: 8 additions & 0 deletions tests/tc_erroneous_body_content/expected2.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
identifiers
a v
alignof k
init k
mangleof k
sizeof k
stringof k
tupleof k
13 changes: 13 additions & 0 deletions tests/tc_erroneous_body_content/file.d
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
module runnable;

struct A { int a; }
struct B { int b; }

void foo(A node)
{
void bar(B node)
{
node.
}
node.
}
7 changes: 7 additions & 0 deletions tests/tc_erroneous_body_content/run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
set -e
set -u

../../bin/dcd-client $1 file.d -c 118 > actual1.txt
diff actual1.txt expected1.txt
../../bin/dcd-client $1 file.d -c 134 > actual2.txt
diff actual2.txt expected2.txt

0 comments on commit 3bfab29

Please sign in to comment.