better message for bad ident name in repl

This commit is contained in:
Kiryl Dziamura 2024-05-22 01:00:31 +02:00
parent 45a7e448dd
commit 8d574a93a3
No known key found for this signature in database
GPG Key ID: FB539501A4561ACF

View File

@ -131,8 +131,8 @@ impl ReplState {
| ValueDef::Body(_, _)
| ValueDef::AnnotatedBody { .. } => {
todo!("handle pattern other than identifier (which repl doesn't support).\
\nTip: this error can be triggered when trying to define a variable with a character that is not allowed,\
like starting with an uppercase character.")
\nTip: this error can be triggered when trying to define a variable with a character that is not allowed, \
like starting with an uppercase character or using underdash (_).")
}
ValueDef::Dbg { .. } => {
todo!("handle receiving a `dbg` - what should the repl do for that?")