-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: HugrView::get_function_type (#507)
Previously this was implemented separately for Hugr (correctly, according to the doc), and for the other two HugrViews SiblingGraph/DescendantsGraph (by deferring to the get_function_type of the whole Hugr). This is incorrect - the latter two should (surely?) return the function type of the portion of the Hugr which they view. However, we can both fix this and delete code, by moving the impl-Hugr version to be the trait default, and removing the other two. See test added (previously both were returning None).
- Loading branch information
Showing
3 changed files
with
19 additions
and
18 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