-
-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix bug in handling of enumeration literal alias with signature
- Loading branch information
Showing
4 changed files
with
69 additions
and
12 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package pack1 is | ||
type t is (foo, bar); | ||
end package; | ||
|
||
------------------------------------------------------------------------------- | ||
|
||
use work.pack1.all; | ||
|
||
package pack2 is | ||
alias foo is work.pack1.foo [return t]; | ||
procedure foo; | ||
procedure bar(arg : t); | ||
end package; | ||
|
||
------------------------------------------------------------------------------- | ||
|
||
entity e is | ||
end entity; | ||
|
||
use work.pack2.all; | ||
|
||
architecture test of e is | ||
begin | ||
p1: process is | ||
begin | ||
bar(foo); -- OK | ||
wait; | ||
end process; | ||
end architecture; |
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