Skip to content

Commit 90a07c3

Browse files
committed
Missing RuntimeType: StaticType case
1 parent bab1eb3 commit 90a07c3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

hugr-core/src/types/type_param.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -488,6 +488,7 @@ pub fn check_term_type(term: &Term, type_: &Term) -> Result<(), TermTypeError> {
488488
(Term::Float(_), Term::FloatType) => Ok(()),
489489

490490
// Static types
491+
(Term::RuntimeType(_), Term::StaticType) => Ok(()),
491492
(Term::StaticType, Term::StaticType) => Ok(()),
492493
(Term::StringType, Term::StaticType) => Ok(()),
493494
(Term::BytesType, Term::StaticType) => Ok(()),

0 commit comments

Comments
 (0)