[BUG] Unexpected behavior of str(String())
; printing corrupts future prints of String()
#2392
Labels
bug
Something isn't working
mojo
Issues that are related to mojo
mojo-repo
Tag all issues with this label
mojo-stdlib
Tag for issues related to standard library
Bug description
Unexpected behavior:
str(String())
isn't an empty string, i.e. all of the following assertions will fail:The length of
str(String())
is -1.Printing
str(String())
will corrupt all future prints of the valueString()
.Steps to reproduce
This code:
Produces the following output:
System information
The text was updated successfully, but these errors were encountered: