-
Notifications
You must be signed in to change notification settings - Fork 419
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a test showing the problem from #25569
--- Signed-off-by: Michael Ferguson <[email protected]>
- Loading branch information
Showing
5 changed files
with
23 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// This (and SubModule) were created as a reproducer for issue #25569 | ||
|
||
module Recursive { | ||
config param EXTRA_CHECKS = 42; | ||
|
||
include public module SubModule; | ||
|
||
use this.SubModule; | ||
|
||
writeln("in Recursive, EXTRA_CHECKS=", EXTRA_CHECKS); | ||
|
||
foo(); | ||
} |
Empty file.
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,5 @@ | ||
module SubModule { | ||
import super.EXTRA_CHECKS; | ||
|
||
proc foo() { writeln("in SubModule.foo, EXTRA_CHECKS=", EXTRA_CHECKS); } | ||
} |
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,3 @@ | ||
use Recursive; | ||
|
||
proc main() { } |
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 @@ | ||
in Recursive, EXTRA_CHECKS=42 | ||
in SubModule.foo, EXTRA_CHECKS=42 |