diff --git a/test/test_errors.mojo b/test/test_errors.mojo index 812c1bc..2fa63fd 100644 --- a/test/test_errors.mojo +++ b/test/test_errors.mojo @@ -10,7 +10,7 @@ def _assert_lc(source: String, offset: Int, line: Int, col: Int) raises: def _msg(e: Error) -> String: - return String.write(e) + return String(e) # --------------------------------------------------------------------------