-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #601 from Basile-z/issue-600
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
Showing
7 changed files
with
40 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule libdparse
updated
5 files
+1 −0 | src/dparse/ast.d | |
+21 −5 | src/dparse/formatter.d | |
+43 −8 | src/dparse/parser.d | |
+15 −0 | test/fail_files/dcd_tricks.d | |
+26 −0 | test/pass_files/function_literals.d |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |