-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add nodes with no edges to the dependency graph (#2390)
- Closes #2373 Consider this: ``` let x : _ := 0 in ... ``` When translating the let to internal, we build the dependency graph and then use that to group definitions in mutually recursive blocks. Since `x` has no edge, it was not being added to the dependency graph, so it was not being translated to Internal, thus crashing later during inference.
- Loading branch information
1 parent
0cf9931
commit 27df394
Showing
6 changed files
with
37 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
module Main; | ||
|
||
import Stdlib.Data.Nat open; | ||
import Stdlib.Data.Bool open; | ||
|
||
main : Nat := | ||
let | ||
y : Nat := 0; | ||
x : _ := 0; | ||
in x; |
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,4 @@ | ||
dependencies: | ||
- .juvix-build/stdlib/ | ||
name: issue2373 | ||
version: 0.0.0 |