mirror of
https://github.com/tweag/nickel.git
synced 2024-10-04 23:27:15 +03:00
Merge pull request #739 from tweag/typecheck/correct-tostr-type
Correct the type of UnaryOp::ToStr
This commit is contained in:
commit
162a5bd6e4
@ -164,7 +164,7 @@ pub fn get_uop_type(
|
||||
// Str -> Num
|
||||
UnaryOp::StrLength() => (mk_typewrapper::str(), mk_typewrapper::num()),
|
||||
// Dyn -> Str
|
||||
UnaryOp::ToStr() => (mk_typewrapper::dynamic(), mk_typewrapper::num()),
|
||||
UnaryOp::ToStr() => (mk_typewrapper::dynamic(), mk_typewrapper::str()),
|
||||
// Str -> Num
|
||||
UnaryOp::NumFromStr() => (mk_typewrapper::str(), mk_typewrapper::num()),
|
||||
// Str -> < | Dyn>
|
||||
|
Loading…
Reference in New Issue
Block a user