louise
The Louise language: compiler, runtime, std, tooling
Clone avec HTTPS, un jeton personnel en mot de passe, ou avec SSH, une clé ajoutée dans vos paramètres.
Dernier runRéussi#121 · main · 16 min 23 s
0Étoiles
0Forks
40Issues
| 1 | // `bytes.build_string` on bytes that are not valid UTF-8 stops the actor, |
| 2 | // on both backends. |
| 3 | |
| 4 | import std/bytes |
| 5 | import std/io |
| 6 | |
| 7 | pub fn main :: -> () / <io> |
| 8 | { |
| 9 | let b = bytes.builder () |> bytes.append_string "abc" |> bytes.append_byte 255 |
| 10 | io.println (bytes.build_string b) |
| 11 | } |
| 12 | //! panic: bytes.build_string: invalid UTF-8 at byte 3 |