mirror of
https://github.com/HigherOrderCO/Bend.git
synced 2024-11-05 04:51:40 +03:00
Fix string result in readback error
This commit is contained in:
parent
312c3c54b2
commit
09c5da06dd
@ -296,7 +296,11 @@ impl<'a> Reader<'a> {
|
||||
recover_string_cons(str_term, string.clone());
|
||||
rd.error(ReadbackError::InvalidStrTerm(string))
|
||||
},
|
||||
_ => rd.error(ReadbackError::InvalidStrTerm(*arg.clone())),
|
||||
_ => {
|
||||
let arg = std::mem::take(arg.as_mut());
|
||||
recover_string_cons(str_term, arg.clone());
|
||||
rd.error(ReadbackError::InvalidStrTerm(arg))
|
||||
}
|
||||
}
|
||||
}
|
||||
Term::App { fun, arg, .. } => {
|
||||
|
@ -6,4 +6,4 @@ Invalid readback:
|
||||
Invalid String Character value '(*, 4)'
|
||||
Invalid String Character value '*'
|
||||
|
||||
""
|
||||
(SCons (*, 4) (SCons * SNil))
|
||||
|
Loading…
Reference in New Issue
Block a user