Skip to content

Commit

Permalink
fix: builtin function bool and str signatures. (#698)
Browse files Browse the repository at this point in the history
  • Loading branch information
Peefy authored Sep 5, 2023
1 parent 1e7349b commit 5323b36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kclvm/sema/src/builtin/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ register_builtin! {
)
bool => Type::function(
None,
Rc::new(Type::ANY),
Rc::new(Type::BOOL),
&[
Parameter {
name: "x".to_string(),
Expand All @@ -439,7 +439,7 @@ register_builtin! {
)
str => Type::function(
None,
Rc::new(Type::ANY),
Rc::new(Type::STR),
&[
Parameter {
name: "x".to_string(),
Expand Down

0 comments on commit 5323b36

Please sign in to comment.