You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The RFC states We also allow Unicode escapes of the form '\u{X}', where X is a sequence of one to six hex digits yet using a char with a single unicode digit causes a rust panic
possibly related to #993 but seems to have a different cause
Code snippet to reproduce
function main() {
// error in leo, no error in rust
let a = '\u1';
}
Stack trace & error message
D:\Work\leo-playground>D:\Work\leo_repos\leo\target\release\leo clean && D:\Work\leo_repos\leo\target\release\leo run
Done Finished in 0 milliseconds
Build Starting...
Build Compiling main program... ("D:\\Work\\leo-playground\\src/main.leo")
thread 'main' panicked at 'begin <= end (3 <= 2) when slicing `\u1`', parser\src\tokenizer\lexer.rs:116:35
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
🐛 Bug Report
The RFC states
We also allow Unicode escapes of the form '\u{X}', where X is a sequence of one to six hex digits
yet using a char with a single unicode digit causes a rust panicpossibly related to #993 but seems to have a different cause
Code snippet to reproduce
Stack trace & error message
Your Environment
The text was updated successfully, but these errors were encountered: