Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Editor outputs incorrect string representation of Bytes #312

Open
tonyfettes opened this issue Oct 10, 2024 · 2 comments
Open

Editor outputs incorrect string representation of Bytes #312

tonyfettes opened this issue Oct 10, 2024 · 2 comments
Assignees

Comments

@tonyfettes
Copy link

tonyfettes commented Oct 10, 2024

Pick any of the editor on the documentation website here and modify the result as

fn main {
  let b1 : Bytes = b"abcd"
  println(b1) // true
}

It will output:

ac

while we expect it to output:

b"\x61\x62\x63\x64"

Reported by @Demonmasterlqx

@bobzhang
Copy link
Collaborator

note this bug only appears in the code mirror based IDE, I could not reproduce in https://try.moonbitlang.cn/

@peter-jerry-ye
Copy link
Collaborator

This is likely due to the out-of-dated moonbit-pad @bzy-debug

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants