-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'topic/1036' into 'master'
Implement defaults for generic formal functions Closes #1036 See merge request eng/libadalang/libadalang!1627
- Loading branch information
Showing
27 changed files
with
3,151 additions
and
3,051 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
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
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
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
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
4 changes: 0 additions & 4 deletions
4
testsuite/tests/name_resolution/formal_pkg_with_box_expr/test.out
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
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
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
6 changes: 6 additions & 0 deletions
6
testsuite/tests/name_resolution/generic_formal_fn_default_val/test.ads
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,6 @@ | ||
generic | ||
type T; | ||
with function Copy (Self : T) return T is (Self); | ||
pragma Test_Block; | ||
package Test is | ||
end Test; |
32 changes: 32 additions & 0 deletions
32
testsuite/tests/name_resolution/generic_formal_fn_default_val/test.out
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,32 @@ | ||
Analyzing test.ads | ||
################## | ||
|
||
Resolving xrefs for node <ExprFunction ["Copy"] test.ads:3:9-3:53> | ||
****************************************************************** | ||
|
||
Expr: <ParenExpr test.ads:3:46-3:52> | ||
type: <IncompleteFormalTypeDecl ["T"] test.ads:2:4-2:11> | ||
expected type: <IncompleteFormalTypeDecl ["T"] test.ads:2:4-2:11> | ||
Expr: <Id "Self" test.ads:3:47-3:51> | ||
references: <DefiningName "Self" test.ads:3:24-3:28> | ||
type: <IncompleteFormalTypeDecl ["T"] test.ads:2:4-2:11> | ||
expected type: <IncompleteFormalTypeDecl ["T"] test.ads:2:4-2:11> | ||
|
||
Resolving xrefs for node <SubpSpec test.ads:3:9-3:42> | ||
***************************************************** | ||
|
||
Expr: <Id "T" test.ads:3:41-3:42> | ||
references: <DefiningName "T" test.ads:2:9-2:10> | ||
type: None | ||
expected type: None | ||
|
||
Resolving xrefs for node <ParamSpec ["Self"] test.ads:3:24-3:32> | ||
**************************************************************** | ||
|
||
Expr: <Id "T" test.ads:3:31-3:32> | ||
references: <DefiningName "T" test.ads:2:9-2:10> | ||
type: None | ||
expected type: None | ||
|
||
|
||
Done. |
2 changes: 2 additions & 0 deletions
2
testsuite/tests/name_resolution/generic_formal_fn_default_val/test.yaml
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,2 @@ | ||
driver: name-resolution | ||
input_sources: [test.ads] |
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
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
Oops, something went wrong.