Fork of daniellemaywood.uk/gleam — Wasm codegen work
2

Configure Feed

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

snapshots

+14 -38
-2
compiler-core/src/parse/snapshots/gleam_core__parse__tests__const_string_concat.snap
··· 1 1 --- 2 2 source: compiler-core/src/parse/tests.rs 3 - assertion_line: 1301 4 3 expression: "\nconst cute = \"cute\"\nconst cute_bee = cute <> \"bee\"\n" 5 - snapshot_kind: text 6 4 --- 7 5 Parsed { 8 6 module: Module {
-2
compiler-core/src/parse/snapshots/gleam_core__parse__tests__deprecation_attribute_on_type_variant.snap
··· 1 1 --- 2 2 source: compiler-core/src/parse/tests.rs 3 - assertion_line: 1678 4 3 expression: "\ntype Wibble {\n @deprecated(\"1\")\n Wibble1\n Wibble2\n}\n" 5 - snapshot_kind: text 6 4 --- 7 5 Parsed { 8 6 module: Module {
-2
compiler-core/src/parse/snapshots/gleam_core__parse__tests__import_type.snap
··· 1 1 --- 2 2 source: compiler-core/src/parse/tests.rs 3 - assertion_line: 792 4 3 expression: "import wibble.{type Wobble, Wobble, type Wabble}" 5 - snapshot_kind: text 6 4 --- 7 5 Parsed { 8 6 module: Module {
-23
compiler-core/src/parse/snapshots/gleam_core__parse__tests__list_spread_followed_by_another_spread.snap
··· 1 - --- 2 - source: compiler-core/src/parse/tests.rs 3 - expression: "\npub fn main() -> Nil {\n let xs = [1, 2, 3]\n let ys = [5, 6, 7]\n [..xs, 4, ..ys]\n}\n" 4 - --- 5 - ----- SOURCE CODE 6 - 7 - pub fn main() -> Nil { 8 - let xs = [1, 2, 3] 9 - let ys = [5, 6, 7] 10 - [..xs, 4, ..ys] 11 - } 12 - 13 - 14 - ----- ERROR 15 - error: Syntax error 16 - ┌─ /src/parse/error.gleam:5:4 17 - 18 - 5 │ [..xs, 4, ..ys] 19 - │ ^^ I wasn't expecting a spread here 20 - 21 - Lists are immutable and singly-linked, so to join two or more lists 22 - all the elements of the lists would need to be copied into a new list. 23 - This would be slow, so there is no built-in syntax for it.
-2
compiler-core/src/parse/snapshots/gleam_core__parse__tests__list_spread_followed_by_another_spread.snap.new compiler-core/src/parse/snapshots/gleam_core__parse__tests__list_spread_followed_by_extra_item_and_another_spread.snap
··· 1 1 --- 2 2 source: compiler-core/src/parse/tests.rs 3 - assertion_line: 876 4 3 expression: "\npub fn main() -> Nil {\n let xs = [1, 2, 3]\n let ys = [5, 6, 7]\n [..xs, 4, ..ys]\n}\n" 5 - snapshot_kind: text 6 4 --- 7 5 ----- SOURCE CODE 8 6
-2
compiler-core/src/parse/snapshots/gleam_core__parse__tests__record_access_no_label.snap
··· 1 1 --- 2 2 source: compiler-core/src/parse/tests.rs 3 - assertion_line: 1247 4 3 expression: "\ntype Wibble {\n Wibble(wibble: String)\n}\n\nfn wobble() {\n Wibble(\"a\").\n}\n" 5 - snapshot_kind: text 6 4 --- 7 5 Parsed { 8 6 module: Module {
-2
compiler-core/src/parse/snapshots/gleam_core__parse__tests__special_error_for_pythonic_import.snap
··· 1 1 --- 2 2 source: compiler-core/src/parse/tests.rs 3 - assertion_line: 1792 4 3 expression: import gleam.io 5 - snapshot_kind: text 6 4 --- 7 5 ----- SOURCE CODE 8 6 import gleam.io
-2
compiler-core/src/parse/snapshots/gleam_core__parse__tests__special_error_for_pythonic_neste_import.snap
··· 1 1 --- 2 2 source: compiler-core/src/parse/tests.rs 3 - assertion_line: 1797 4 3 expression: import one.two.three 5 - snapshot_kind: text 6 4 --- 7 5 ----- SOURCE CODE 8 6 import one.two.three
+14 -1
compiler-core/src/parse/tests.rs
··· 872 872 } 873 873 874 874 #[test] 875 - fn list_spread_followed_by_another_spread() { 875 + fn list_spread_followed_by_extra_item_and_another_spread() { 876 876 assert_module_error!( 877 877 r#" 878 878 pub fn main() -> Nil { 879 879 let xs = [1, 2, 3] 880 880 let ys = [5, 6, 7] 881 881 [..xs, 4, ..ys] 882 + } 883 + "# 884 + ); 885 + } 886 + 887 + #[test] 888 + fn list_spread_followed_by_other_spread() { 889 + assert_module_error!( 890 + r#" 891 + pub fn main() -> Nil { 892 + let xs = [1, 2, 3] 893 + let ys = [5, 6, 7] 894 + [1, ..xs, ..ys] 882 895 } 883 896 "# 884 897 );