⭐️ A friendly language for building type-safe, scalable systems!
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Correct string codegen

+77 -77
+1 -1
compiler-core/src/erlang.rs
··· 2024 2024 message.clone(), 2025 2025 ",", 2026 2026 line(), 2027 - "file => ?FILEPATH,", 2027 + "file => <<?FILEPATH/utf8>>,", 2028 2028 line(), 2029 2029 "module => ", 2030 2030 env.module.to_doc().surround("<<\"", "\"/utf8>>"),
+1 -1
compiler-core/src/erlang/snapshots/gleam_core__erlang__tests__bit_pattern_shadowing.snap
··· 33 33 _ -> 34 34 erlang:error(#{gleam_error => panic, 35 35 message => <<"`panic` expression evaluated."/utf8>>, 36 - file => ?FILEPATH, 36 + file => <<?FILEPATH/utf8>>, 37 37 module => <<"my/mod"/utf8>>, 38 38 function => <<"main"/utf8>>, 39 39 line => 7})
+1 -1
compiler-core/src/erlang/snapshots/gleam_core__erlang__tests__discard_in_assert.snap
··· 24 24 _assert_fail -> 25 25 erlang:error(#{gleam_error => let_assert, 26 26 message => <<"Pattern match failed, no pattern matched the value."/utf8>>, 27 - file => ?FILEPATH, 27 + file => <<?FILEPATH/utf8>>, 28 28 module => <<"my/mod"/utf8>>, 29 29 function => <<"x"/utf8>>, 30 30 line => 2,
+1 -1
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__assert__assert_binary_operation.snap
··· 26 26 true -> nil; 27 27 false -> erlang:error(#{gleam_error => assert, 28 28 message => <<"Assertion failed."/utf8>>, 29 - file => ?FILEPATH, 29 + file => <<?FILEPATH/utf8>>, 30 30 module => <<"my/mod"/utf8>>, 31 31 function => <<"main"/utf8>>, 32 32 line => 4,
+1 -1
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__assert__assert_binary_operation2.snap
··· 24 24 true -> nil; 25 25 false -> erlang:error(#{gleam_error => assert, 26 26 message => <<"Assertion failed."/utf8>>, 27 - file => ?FILEPATH, 27 + file => <<?FILEPATH/utf8>>, 28 28 module => <<"my/mod"/utf8>>, 29 29 function => <<"eq"/utf8>>, 30 30 line => 3,
+1 -1
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__assert__assert_binary_operation3.snap
··· 25 25 true -> nil; 26 26 false -> erlang:error(#{gleam_error => assert, 27 27 message => <<"Assertion failed."/utf8>>, 28 - file => ?FILEPATH, 28 + file => <<?FILEPATH/utf8>>, 29 29 module => <<"my/mod"/utf8>>, 30 30 function => <<"assert_answer"/utf8>>, 31 31 line => 3,
+2 -2
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__assert__assert_binary_operator_with_side_effects.snap
··· 36 36 true -> nil; 37 37 false -> erlang:error(#{gleam_error => assert, 38 38 message => <<"Assertion failed."/utf8>>, 39 - file => ?FILEPATH, 39 + file => <<?FILEPATH/utf8>>, 40 40 module => <<"my/mod"/utf8>>, 41 41 function => <<"go"/utf8>>, 42 42 line => 8, ··· 58 58 end; 59 59 false -> erlang:error(#{gleam_error => assert, 60 60 message => <<"Assertion failed."/utf8>>, 61 - file => ?FILEPATH, 61 + file => <<?FILEPATH/utf8>>, 62 62 module => <<"my/mod"/utf8>>, 63 63 function => <<"go"/utf8>>, 64 64 line => 8,
+2 -2
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__assert__assert_binary_operator_with_side_effects2.snap
··· 36 36 true -> nil; 37 37 false -> erlang:error(#{gleam_error => assert, 38 38 message => <<"Assertion failed."/utf8>>, 39 - file => ?FILEPATH, 39 + file => <<?FILEPATH/utf8>>, 40 40 module => <<"my/mod"/utf8>>, 41 41 function => <<"go"/utf8>>, 42 42 line => 8, ··· 58 58 end; 59 59 false -> erlang:error(#{gleam_error => assert, 60 60 message => <<"Assertion failed."/utf8>>, 61 - file => ?FILEPATH, 61 + file => <<?FILEPATH/utf8>>, 62 62 module => <<"my/mod"/utf8>>, 63 63 function => <<"go"/utf8>>, 64 64 line => 8,
+1 -1
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__assert__assert_function_call.snap
··· 33 33 true -> nil; 34 34 false -> erlang:error(#{gleam_error => assert, 35 35 message => <<"Assertion failed."/utf8>>, 36 - file => ?FILEPATH, 36 + file => <<?FILEPATH/utf8>>, 37 37 module => <<"my/mod"/utf8>>, 38 38 function => <<"main"/utf8>>, 39 39 line => 7,
+1 -1
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__assert__assert_function_call2.snap
··· 33 33 true -> nil; 34 34 false -> erlang:error(#{gleam_error => assert, 35 35 message => <<"Assertion failed."/utf8>>, 36 - file => ?FILEPATH, 36 + file => <<?FILEPATH/utf8>>, 37 37 module => <<"my/mod"/utf8>>, 38 38 function => <<"go"/utf8>>, 39 39 line => 7,
+1 -1
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__assert__assert_literal.snap
··· 24 24 true -> nil; 25 25 false -> erlang:error(#{gleam_error => assert, 26 26 message => <<"Assertion failed."/utf8>>, 27 - file => ?FILEPATH, 27 + file => <<?FILEPATH/utf8>>, 28 28 module => <<"my/mod"/utf8>>, 29 29 function => <<"main"/utf8>>, 30 30 line => 3,
+1 -1
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__assert__assert_nested_function_call.snap
··· 34 34 true -> nil; 35 35 false -> erlang:error(#{gleam_error => assert, 36 36 message => <<"Assertion failed."/utf8>>, 37 - file => ?FILEPATH, 37 + file => <<?FILEPATH/utf8>>, 38 38 module => <<"my/mod"/utf8>>, 39 39 function => <<"main"/utf8>>, 40 40 line => 7,
+1 -1
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__assert__assert_variable.snap
··· 26 26 true -> nil; 27 27 false -> erlang:error(#{gleam_error => assert, 28 28 message => <<"Assertion failed."/utf8>>, 29 - file => ?FILEPATH, 29 + file => <<?FILEPATH/utf8>>, 30 30 module => <<"my/mod"/utf8>>, 31 31 function => <<"main"/utf8>>, 32 32 line => 4,
+1 -1
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__assert__assert_with_block_message.snap
··· 39 39 Message = identity(<<"This shouldn't fail"/utf8>>), 40 40 Message 41 41 end, 42 - file => ?FILEPATH, 42 + file => <<?FILEPATH/utf8>>, 43 43 module => <<"my/mod"/utf8>>, 44 44 function => <<"main"/utf8>>, 45 45 line => 7,
+1 -1
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__assert__assert_with_message.snap
··· 24 24 true -> nil; 25 25 false -> erlang:error(#{gleam_error => assert, 26 26 message => <<"This shouldn't fail"/utf8>>, 27 - file => ?FILEPATH, 27 + file => <<?FILEPATH/utf8>>, 28 28 module => <<"my/mod"/utf8>>, 29 29 function => <<"main"/utf8>>, 30 30 line => 3,
+2 -2
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__bit_arrays__bit_array.snap
··· 33 33 _assert_fail -> 34 34 erlang:error(#{gleam_error => let_assert, 35 35 message => <<"Pattern match failed, no pattern matched the value."/utf8>>, 36 - file => ?FILEPATH, 36 + file => <<?FILEPATH/utf8>>, 37 37 module => <<"my/mod"/utf8>>, 38 38 function => <<"main"/utf8>>, 39 39 line => 5, ··· 47 47 _assert_fail@1 -> 48 48 erlang:error(#{gleam_error => let_assert, 49 49 message => <<"Pattern match failed, no pattern matched the value."/utf8>>, 50 - file => ?FILEPATH, 50 + file => <<?FILEPATH/utf8>>, 51 51 module => <<"my/mod"/utf8>>, 52 52 function => <<"main"/utf8>>, 53 53 line => 6,
+1 -1
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__bit_arrays__bit_array2.snap
··· 27 27 _assert_fail -> 28 28 erlang:error(#{gleam_error => let_assert, 29 29 message => <<"Pattern match failed, no pattern matched the value."/utf8>>, 30 - file => ?FILEPATH, 30 + file => <<?FILEPATH/utf8>>, 31 31 module => <<"my/mod"/utf8>>, 32 32 function => <<"main"/utf8>>, 33 33 line => 3,
+1 -1
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__bit_arrays__bit_array3.snap
··· 27 27 _assert_fail -> 28 28 erlang:error(#{gleam_error => let_assert, 29 29 message => <<"Pattern match failed, no pattern matched the value."/utf8>>, 30 - file => ?FILEPATH, 30 + file => <<?FILEPATH/utf8>>, 31 31 module => <<"my/mod"/utf8>>, 32 32 function => <<"main"/utf8>>, 33 33 line => 3,
+1 -1
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__bit_arrays__bit_array_declare_and_use_var.snap
··· 24 24 _assert_fail -> 25 25 erlang:error(#{gleam_error => let_assert, 26 26 message => <<"Pattern match failed, no pattern matched the value."/utf8>>, 27 - file => ?FILEPATH, 27 + file => <<?FILEPATH/utf8>>, 28 28 module => <<"my/mod"/utf8>>, 29 29 function => <<"go"/utf8>>, 30 30 line => 2,
+1 -1
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__bit_arrays__bit_array_float.snap
··· 30 30 _assert_fail -> 31 31 erlang:error(#{gleam_error => let_assert, 32 32 message => <<"Pattern match failed, no pattern matched the value."/utf8>>, 33 - file => ?FILEPATH, 33 + file => <<?FILEPATH/utf8>>, 34 34 module => <<"my/mod"/utf8>>, 35 35 function => <<"main"/utf8>>, 36 36 line => 4,
+1 -1
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__bit_arrays__discard_utf8_pattern.snap
··· 25 25 _assert_fail -> 26 26 erlang:error(#{gleam_error => let_assert, 27 27 message => <<"Pattern match failed, no pattern matched the value."/utf8>>, 28 - file => ?FILEPATH, 28 + file => <<?FILEPATH/utf8>>, 29 29 module => <<"my/mod"/utf8>>, 30 30 function => <<"main"/utf8>>, 31 31 line => 3,
+1 -1
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__echo__echo_with_a_panic.snap
··· 22 22 main() -> 23 23 echo(erlang:error(#{gleam_error => panic, 24 24 message => <<"`panic` expression evaluated."/utf8>>, 25 - file => ?FILEPATH, 25 + file => <<?FILEPATH/utf8>>, 26 26 module => <<"my/mod"/utf8>>, 27 27 function => <<"main"/utf8>>, 28 28 line => 3}), 3).
+1 -1
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__external_fn__attribute_javascript.snap
··· 23 23 one(X) -> 24 24 erlang:error(#{gleam_error => todo, 25 25 message => <<"`todo` expression evaluated. This code has not yet been implemented."/utf8>>, 26 - file => ?FILEPATH, 26 + file => <<?FILEPATH/utf8>>, 27 27 module => <<"my/mod"/utf8>>, 28 28 function => <<"one"/utf8>>, 29 29 line => 4}).
+1 -1
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__let_assert__assignment_pattern.snap
··· 24 24 _assert_fail -> 25 25 erlang:error(#{gleam_error => let_assert, 26 26 message => <<"Pattern match failed, no pattern matched the value."/utf8>>, 27 - file => ?FILEPATH, 27 + file => <<?FILEPATH/utf8>>, 28 28 module => <<"my/mod"/utf8>>, 29 29 function => <<"go"/utf8>>, 30 30 line => 2,
+1 -1
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__let_assert__bit_array_assignment_discard.snap
··· 26 26 _assert_fail -> 27 27 erlang:error(#{gleam_error => let_assert, 28 28 message => <<"Pattern match failed, no pattern matched the value."/utf8>>, 29 - file => ?FILEPATH, 29 + file => <<?FILEPATH/utf8>>, 30 30 module => <<"my/mod"/utf8>>, 31 31 function => <<"main"/utf8>>, 32 32 line => 3,
+1 -1
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__let_assert__bit_array_assignment_float.snap
··· 26 26 _assert_fail -> 27 27 erlang:error(#{gleam_error => let_assert, 28 28 message => <<"Pattern match failed, no pattern matched the value."/utf8>>, 29 - file => ?FILEPATH, 29 + file => <<?FILEPATH/utf8>>, 30 30 module => <<"my/mod"/utf8>>, 31 31 function => <<"main"/utf8>>, 32 32 line => 3,
+1 -1
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__let_assert__bit_array_assignment_int.snap
··· 26 26 _assert_fail -> 27 27 erlang:error(#{gleam_error => let_assert, 28 28 message => <<"Pattern match failed, no pattern matched the value."/utf8>>, 29 - file => ?FILEPATH, 29 + file => <<?FILEPATH/utf8>>, 30 30 module => <<"my/mod"/utf8>>, 31 31 function => <<"main"/utf8>>, 32 32 line => 3,
+1 -1
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__let_assert__bit_array_assignment_string.snap
··· 26 26 _assert_fail -> 27 27 erlang:error(#{gleam_error => let_assert, 28 28 message => <<"Pattern match failed, no pattern matched the value."/utf8>>, 29 - file => ?FILEPATH, 29 + file => <<?FILEPATH/utf8>>, 30 30 module => <<"my/mod"/utf8>>, 31 31 function => <<"main"/utf8>>, 32 32 line => 3,
+1 -1
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__let_assert__bit_array_pattern.snap
··· 24 24 _assert_fail -> 25 25 erlang:error(#{gleam_error => let_assert, 26 26 message => <<"Pattern match failed, no pattern matched the value."/utf8>>, 27 - file => ?FILEPATH, 27 + file => <<?FILEPATH/utf8>>, 28 28 module => <<"my/mod"/utf8>>, 29 29 function => <<"go"/utf8>>, 30 30 line => 2,
+1 -1
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__let_assert__constructor_pattern.snap
··· 24 24 _assert_fail -> 25 25 erlang:error(#{gleam_error => let_assert, 26 26 message => <<"Pattern match failed, no pattern matched the value."/utf8>>, 27 - file => ?FILEPATH, 27 + file => <<?FILEPATH/utf8>>, 28 28 module => <<"my/mod"/utf8>>, 29 29 function => <<"go"/utf8>>, 30 30 line => 2,
+1 -1
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__let_assert__constructor_pattern_with_multiple_variables.snap
··· 32 32 _assert_fail -> 33 33 erlang:error(#{gleam_error => let_assert, 34 34 message => <<"Pattern match failed, no pattern matched the value."/utf8>>, 35 - file => ?FILEPATH, 35 + file => <<?FILEPATH/utf8>>, 36 36 module => <<"my/mod"/utf8>>, 37 37 function => <<"go"/utf8>>, 38 38 line => 7,
+1 -1
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__let_assert__float_pattern.snap
··· 24 24 _assert_fail -> 25 25 erlang:error(#{gleam_error => let_assert, 26 26 message => <<"Pattern match failed, no pattern matched the value."/utf8>>, 27 - file => ?FILEPATH, 27 + file => <<?FILEPATH/utf8>>, 28 28 module => <<"my/mod"/utf8>>, 29 29 function => <<"go"/utf8>>, 30 30 line => 2,
+1 -1
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__let_assert__int_pattern.snap
··· 24 24 _assert_fail -> 25 25 erlang:error(#{gleam_error => let_assert, 26 26 message => <<"Pattern match failed, no pattern matched the value."/utf8>>, 27 - file => ?FILEPATH, 27 + file => <<?FILEPATH/utf8>>, 28 28 module => <<"my/mod"/utf8>>, 29 29 function => <<"go"/utf8>>, 30 30 line => 2,
+1 -1
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__let_assert__let_assert_at_end_of_block.snap
··· 30 30 _assert_fail -> 31 31 erlang:error(#{gleam_error => let_assert, 32 32 message => <<"Pattern match failed, no pattern matched the value."/utf8>>, 33 - file => ?FILEPATH, 33 + file => <<?FILEPATH/utf8>>, 34 34 module => <<"my/mod"/utf8>>, 35 35 function => <<"go"/utf8>>, 36 36 line => 5,
+1 -1
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__let_assert__list_pattern.snap
··· 24 24 _assert_fail -> 25 25 erlang:error(#{gleam_error => let_assert, 26 26 message => <<"Pattern match failed, no pattern matched the value."/utf8>>, 27 - file => ?FILEPATH, 27 + file => <<?FILEPATH/utf8>>, 28 28 module => <<"my/mod"/utf8>>, 29 29 function => <<"go"/utf8>>, 30 30 line => 2,
+1 -1
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__let_assert__list_pattern_with_multiple_variables.snap
··· 24 24 _assert_fail -> 25 25 erlang:error(#{gleam_error => let_assert, 26 26 message => <<"Pattern match failed, no pattern matched the value."/utf8>>, 27 - file => ?FILEPATH, 27 + file => <<?FILEPATH/utf8>>, 28 28 module => <<"my/mod"/utf8>>, 29 29 function => <<"go"/utf8>>, 30 30 line => 2,
+1 -1
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__let_assert__message.snap
··· 26 26 _assert_fail -> 27 27 erlang:error(#{gleam_error => let_assert, 28 28 message => <<"Oops, there was an error"/utf8>>, 29 - file => ?FILEPATH, 29 + file => <<?FILEPATH/utf8>>, 30 30 module => <<"my/mod"/utf8>>, 31 31 function => <<"unwrap_or_panic"/utf8>>, 32 32 line => 3,
+1 -1
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__let_assert__more_than_one_var.snap
··· 24 24 _assert_fail -> 25 25 erlang:error(#{gleam_error => let_assert, 26 26 message => <<"Pattern match failed, no pattern matched the value."/utf8>>, 27 - file => ?FILEPATH, 27 + file => <<?FILEPATH/utf8>>, 28 28 module => <<"my/mod"/utf8>>, 29 29 function => <<"go"/utf8>>, 30 30 line => 2,
+1 -1
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__let_assert__one_var.snap
··· 24 24 _assert_fail -> 25 25 erlang:error(#{gleam_error => let_assert, 26 26 message => <<"Pattern match failed, no pattern matched the value."/utf8>>, 27 - file => ?FILEPATH, 27 + file => <<?FILEPATH/utf8>>, 28 28 module => <<"my/mod"/utf8>>, 29 29 function => <<"go"/utf8>>, 30 30 line => 2,
+1 -1
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__let_assert__pattern_let.snap
··· 24 24 _assert_fail -> 25 25 erlang:error(#{gleam_error => let_assert, 26 26 message => <<"Pattern match failed, no pattern matched the value."/utf8>>, 27 - file => ?FILEPATH, 27 + file => <<?FILEPATH/utf8>>, 28 28 module => <<"my/mod"/utf8>>, 29 29 function => <<"go"/utf8>>, 30 30 line => 2,
+1 -1
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__let_assert__reference_earlier_segment.snap
··· 26 26 _assert_fail -> 27 27 erlang:error(#{gleam_error => let_assert, 28 28 message => <<"Pattern match failed, no pattern matched the value."/utf8>>, 29 - file => ?FILEPATH, 29 + file => <<?FILEPATH/utf8>>, 30 30 module => <<"my/mod"/utf8>>, 31 31 function => <<"main"/utf8>>, 32 32 line => 3,
+1 -1
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__let_assert__string_pattern.snap
··· 24 24 _assert_fail -> 25 25 erlang:error(#{gleam_error => let_assert, 26 26 message => <<"Pattern match failed, no pattern matched the value."/utf8>>, 27 - file => ?FILEPATH, 27 + file => <<?FILEPATH/utf8>>, 28 28 module => <<"my/mod"/utf8>>, 29 29 function => <<"go"/utf8>>, 30 30 line => 2,
+1 -1
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__let_assert__string_prefix_pattern.snap
··· 24 24 _assert_fail -> 25 25 erlang:error(#{gleam_error => let_assert, 26 26 message => <<"Pattern match failed, no pattern matched the value."/utf8>>, 27 - file => ?FILEPATH, 27 + file => <<?FILEPATH/utf8>>, 28 28 module => <<"my/mod"/utf8>>, 29 29 function => <<"go"/utf8>>, 30 30 line => 2,
+1 -1
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__let_assert__string_prefix_pattern_with_prefix_binding.snap
··· 26 26 _assert_fail -> 27 27 erlang:error(#{gleam_error => let_assert, 28 28 message => <<"Pattern match failed, no pattern matched the value."/utf8>>, 29 - file => ?FILEPATH, 29 + file => <<?FILEPATH/utf8>>, 30 30 module => <<"my/mod"/utf8>>, 31 31 function => <<"go"/utf8>>, 32 32 line => 2,
+1 -1
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__let_assert__variable_message.snap
··· 26 26 _assert_fail -> 27 27 erlang:error(#{gleam_error => let_assert, 28 28 message => Message, 29 - file => ?FILEPATH, 29 + file => <<?FILEPATH/utf8>>, 30 30 module => <<"my/mod"/utf8>>, 31 31 function => <<"expect"/utf8>>, 32 32 line => 3,
+2 -2
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__let_assert__variable_rewrites.snap
··· 25 25 _assert_fail -> 26 26 erlang:error(#{gleam_error => let_assert, 27 27 message => <<"Pattern match failed, no pattern matched the value."/utf8>>, 28 - file => ?FILEPATH, 28 + file => <<?FILEPATH/utf8>>, 29 29 module => <<"my/mod"/utf8>>, 30 30 function => <<"go"/utf8>>, 31 31 line => 2, ··· 39 39 _assert_fail@1 -> 40 40 erlang:error(#{gleam_error => let_assert, 41 41 message => <<"Pattern match failed, no pattern matched the value."/utf8>>, 42 - file => ?FILEPATH, 42 + file => <<?FILEPATH/utf8>>, 43 43 module => <<"my/mod"/utf8>>, 44 44 function => <<"go"/utf8>>, 45 45 line => 3,
+2 -2
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__numbers__numbers_with_underscores2.snap
··· 27 27 _assert_fail -> 28 28 erlang:error(#{gleam_error => let_assert, 29 29 message => <<"Pattern match failed, no pattern matched the value."/utf8>>, 30 - file => ?FILEPATH, 30 + file => <<?FILEPATH/utf8>>, 31 31 module => <<"my/mod"/utf8>>, 32 32 function => <<"main"/utf8>>, 33 33 line => 3, ··· 41 41 _assert_fail@1 -> 42 42 erlang:error(#{gleam_error => let_assert, 43 43 message => <<"Pattern match failed, no pattern matched the value."/utf8>>, 44 - file => ?FILEPATH, 44 + file => <<?FILEPATH/utf8>>, 45 45 module => <<"my/mod"/utf8>>, 46 46 function => <<"main"/utf8>>, 47 47 line => 4,
+1 -1
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__panic__panic_as.snap
··· 22 22 main() -> 23 23 erlang:error(#{gleam_error => panic, 24 24 message => <<"wibble"/utf8>>, 25 - file => ?FILEPATH, 25 + file => <<?FILEPATH/utf8>>, 26 26 module => <<"my/mod"/utf8>>, 27 27 function => <<"main"/utf8>>, 28 28 line => 3}).
+1 -1
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__panic__panic_as_function.snap
··· 30 30 main() -> 31 31 erlang:error(#{gleam_error => panic, 32 32 message => (<<(retstring())/binary, "wobble"/utf8>>), 33 - file => ?FILEPATH, 33 + file => <<?FILEPATH/utf8>>, 34 34 module => <<"my/mod"/utf8>>, 35 35 function => <<"main"/utf8>>, 36 36 line => 6}).
+1 -1
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__panic__piped.snap
··· 24 24 _pipe = <<"lets"/utf8>>, 25 25 (erlang:error(#{gleam_error => panic, 26 26 message => <<"`panic` expression evaluated."/utf8>>, 27 - file => ?FILEPATH, 27 + file => <<?FILEPATH/utf8>>, 28 28 module => <<"my/mod"/utf8>>, 29 29 function => <<"main"/utf8>>, 30 30 line => 4}))(_pipe).
+2 -2
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__panic__piped_chain.snap
··· 25 25 _pipe = <<"lets"/utf8>>, 26 26 _pipe@1 = (erlang:error(#{gleam_error => panic, 27 27 message => <<"pipe"/utf8>>, 28 - file => ?FILEPATH, 28 + file => <<?FILEPATH/utf8>>, 29 29 module => <<"my/mod"/utf8>>, 30 30 function => <<"main"/utf8>>, 31 31 line => 4}))(_pipe), 32 32 (erlang:error(#{gleam_error => panic, 33 33 message => <<"other panic"/utf8>>, 34 - file => ?FILEPATH, 34 + file => <<?FILEPATH/utf8>>, 35 35 module => <<"my/mod"/utf8>>, 36 36 function => <<"main"/utf8>>, 37 37 line => 5}))(_pipe@1).
+1 -1
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__panic__plain.snap
··· 22 22 main() -> 23 23 erlang:error(#{gleam_error => panic, 24 24 message => <<"`panic` expression evaluated."/utf8>>, 25 - file => ?FILEPATH, 25 + file => <<?FILEPATH/utf8>>, 26 26 module => <<"my/mod"/utf8>>, 27 27 function => <<"main"/utf8>>, 28 28 line => 3}).
+1 -1
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__patterns__string_prefix_as_pattern_with_assertion.snap
··· 24 24 _assert_fail -> 25 25 erlang:error(#{gleam_error => let_assert, 26 26 message => <<"Pattern match failed, no pattern matched the value."/utf8>>, 27 - file => ?FILEPATH, 27 + file => <<?FILEPATH/utf8>>, 28 28 module => <<"my/mod"/utf8>>, 29 29 function => <<"a"/utf8>>, 30 30 line => 2,
+1 -1
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__strings__assert_string_prefix.snap
··· 26 26 _assert_fail -> 27 27 erlang:error(#{gleam_error => let_assert, 28 28 message => <<"Pattern match failed, no pattern matched the value."/utf8>>, 29 - file => ?FILEPATH, 29 + file => <<?FILEPATH/utf8>>, 30 30 module => <<"my/mod"/utf8>>, 31 31 function => <<"main"/utf8>>, 32 32 line => 3,
+1 -1
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__strings__assert_string_prefix_discar.snap
··· 25 25 _assert_fail -> 26 26 erlang:error(#{gleam_error => let_assert, 27 27 message => <<"Pattern match failed, no pattern matched the value."/utf8>>, 28 - file => ?FILEPATH, 28 + file => <<?FILEPATH/utf8>>, 29 29 module => <<"my/mod"/utf8>>, 30 30 function => <<"main"/utf8>>, 31 31 line => 3,
+1 -1
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__todo__named.snap
··· 22 22 main() -> 23 23 erlang:error(#{gleam_error => todo, 24 24 message => <<"testing"/utf8>>, 25 - file => ?FILEPATH, 25 + file => <<?FILEPATH/utf8>>, 26 26 module => <<"my/mod"/utf8>>, 27 27 function => <<"main"/utf8>>, 28 28 line => 3}).
+2 -2
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__todo__piped.snap
··· 25 25 _pipe = <<"lets"/utf8>>, 26 26 _pipe@1 = (erlang:error(#{gleam_error => todo, 27 27 message => <<"pipe"/utf8>>, 28 - file => ?FILEPATH, 28 + file => <<?FILEPATH/utf8>>, 29 29 module => <<"my/mod"/utf8>>, 30 30 function => <<"main"/utf8>>, 31 31 line => 4}))(_pipe), 32 32 (erlang:error(#{gleam_error => todo, 33 33 message => <<"other todo"/utf8>>, 34 - file => ?FILEPATH, 34 + file => <<?FILEPATH/utf8>>, 35 35 module => <<"my/mod"/utf8>>, 36 36 function => <<"main"/utf8>>, 37 37 line => 5}))(_pipe@1).
+1 -1
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__todo__plain.snap
··· 22 22 main() -> 23 23 erlang:error(#{gleam_error => todo, 24 24 message => <<"`todo` expression evaluated. This code has not yet been implemented."/utf8>>, 25 - file => ?FILEPATH, 25 + file => <<?FILEPATH/utf8>>, 26 26 module => <<"my/mod"/utf8>>, 27 27 function => <<"main"/utf8>>, 28 28 line => 3}).
+1 -1
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__todo__todo_as.snap
··· 22 22 main() -> 23 23 erlang:error(#{gleam_error => todo, 24 24 message => <<"wibble"/utf8>>, 25 - file => ?FILEPATH, 25 + file => <<?FILEPATH/utf8>>, 26 26 module => <<"my/mod"/utf8>>, 27 27 function => <<"main"/utf8>>, 28 28 line => 3}).
+1 -1
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__todo__todo_as_function.snap
··· 30 30 main() -> 31 31 erlang:error(#{gleam_error => todo, 32 32 message => (<<(retstring())/binary, "wobble"/utf8>>), 33 - file => ?FILEPATH, 33 + file => <<?FILEPATH/utf8>>, 34 34 module => <<"my/mod"/utf8>>, 35 35 function => <<"main"/utf8>>, 36 36 line => 6}).
+1 -1
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__type_params__custom_type_named_args_count_once.snap
··· 29 29 wibble() -> 30 30 erlang:error(#{gleam_error => todo, 31 31 message => <<"`todo` expression evaluated. This code has not yet been implemented."/utf8>>, 32 - file => ?FILEPATH, 32 + file => <<?FILEPATH/utf8>>, 33 33 module => <<"my/mod"/utf8>>, 34 34 function => <<"wibble"/utf8>>, 35 35 line => 7}).
+1 -1
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__type_params__custom_type_nested_named_args_count_once.snap
··· 29 29 wibble() -> 30 30 erlang:error(#{gleam_error => todo, 31 31 message => <<"`todo` expression evaluated. This code has not yet been implemented."/utf8>>, 32 - file => ?FILEPATH, 32 + file => <<?FILEPATH/utf8>>, 33 33 module => <<"my/mod"/utf8>>, 34 34 function => <<"wibble"/utf8>>, 35 35 line => 7}).
+1 -1
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__type_params__custom_type_nested_result_type_count_once.snap
··· 29 29 wibble() -> 30 30 erlang:error(#{gleam_error => todo, 31 31 message => <<"`todo` expression evaluated. This code has not yet been implemented."/utf8>>, 32 - file => ?FILEPATH, 32 + file => <<?FILEPATH/utf8>>, 33 33 module => <<"my/mod"/utf8>>, 34 34 function => <<"wibble"/utf8>>, 35 35 line => 7}).
+1 -1
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__type_params__custom_type_tuple_type_params_count_twice.snap
··· 29 29 wibble() -> 30 30 erlang:error(#{gleam_error => todo, 31 31 message => <<"`todo` expression evaluated. This code has not yet been implemented."/utf8>>, 32 - file => ?FILEPATH, 32 + file => <<?FILEPATH/utf8>>, 33 33 module => <<"my/mod"/utf8>>, 34 34 function => <<"wibble"/utf8>>, 35 35 line => 7}).
+1 -1
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__type_params__nested_result_type_count_once.snap
··· 22 22 wibble() -> 23 23 erlang:error(#{gleam_error => todo, 24 24 message => <<"`todo` expression evaluated. This code has not yet been implemented."/utf8>>, 25 - file => ?FILEPATH, 25 + file => <<?FILEPATH/utf8>>, 26 26 module => <<"my/mod"/utf8>>, 27 27 function => <<"wibble"/utf8>>, 28 28 line => 3}).
+1 -1
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__type_params__result_type_count_once.snap
··· 22 22 wibble() -> 23 23 erlang:error(#{gleam_error => todo, 24 24 message => <<"`todo` expression evaluated. This code has not yet been implemented."/utf8>>, 25 - file => ?FILEPATH, 25 + file => <<?FILEPATH/utf8>>, 26 26 module => <<"my/mod"/utf8>>, 27 27 function => <<"wibble"/utf8>>, 28 28 line => 3}).
+2 -2
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__type_params__result_type_inferred_count_once.snap
··· 32 32 wobble() -> 33 33 erlang:error(#{gleam_error => todo, 34 34 message => <<"`todo` expression evaluated. This code has not yet been implemented."/utf8>>, 35 - file => ?FILEPATH, 35 + file => <<?FILEPATH/utf8>>, 36 36 module => <<"my/mod"/utf8>>, 37 37 function => <<"wobble"/utf8>>, 38 38 line => 11}). ··· 46 46 _assert_fail -> 47 47 erlang:error(#{gleam_error => let_assert, 48 48 message => <<"Pattern match failed, no pattern matched the value."/utf8>>, 49 - file => ?FILEPATH, 49 + file => <<?FILEPATH/utf8>>, 50 50 module => <<"my/mod"/utf8>>, 51 51 function => <<"wibble"/utf8>>, 52 52 line => 3,
+1 -1
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__type_params__tuple_type_params_count_twice.snap
··· 22 22 wibble() -> 23 23 erlang:error(#{gleam_error => todo, 24 24 message => <<"`todo` expression evaluated. This code has not yet been implemented."/utf8>>, 25 - file => ?FILEPATH, 25 + file => <<?FILEPATH/utf8>>, 26 26 module => <<"my/mod"/utf8>>, 27 27 function => <<"wibble"/utf8>>, 28 28 line => 3}).
+1 -1
compiler-core/src/erlang/tests/snapshots/gleam_core__erlang__tests__use___no_callback_body.snap
··· 24 24 Thingy = fun(F) -> F() end, 25 25 Thingy(fun() -> erlang:error(#{gleam_error => todo, 26 26 message => <<"`todo` expression evaluated. This code has not yet been implemented."/utf8>>, 27 - file => ?FILEPATH, 27 + file => <<?FILEPATH/utf8>>, 28 28 module => <<"my/mod"/utf8>>, 29 29 function => <<"main"/utf8>>, 30 30 line => 4}) end).