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

Updated snapshots

authored by Aayush and committed by Louis Pilfold 22d3fb7a 18080337

+3 -3
compiler-core/src/type_/tests/snapshots/gleam_core__type___tests__dead_code_detection__shadowed_imported_value_marked_unused.snap
··· 24 24 25 25 Hint: You can safely remove it. 26 26 27 - warning: `wibble` shadows an imported name 27 + warning: Shadowed Import 28 28 ┌─ /src/warning/wrn.gleam:4:1 29 29 30 30 4 │ pub const wibble = 2 31 31 │ ^^^^^^^^^^^^^^^^ `wibble` is defined here 32 32 33 - Definition of `wibble` shadows an imported value. 33 + Definition of wibble shadows an imported value. 34 34 The imported value could not be used in this module anyway. 35 - Hint: Either rename `wibble` or remove the `import` that brings `wibble` into scope. 35 + Hint: Either rename the definition or remove its import.
+3 -3
compiler-core/src/type_/tests/snapshots/gleam_core__type___tests__dead_code_detection__used_shadowed_imported_value.snap
··· 16 16 17 17 18 18 ----- WARNING 19 - warning: `wibble` shadows an imported name 19 + warning: Shadowed Import 20 20 ┌─ /src/warning/wrn.gleam:4:1 21 21 22 22 4 │ pub const wibble = wibble 23 23 │ ^^^^^^^^^^^^^^^^ `wibble` is defined here 24 24 25 - Definition of `wibble` shadows an imported value. 25 + Definition of wibble shadows an imported value. 26 26 The imported value could not be used in this module anyway. 27 - Hint: Either rename `wibble` or remove the `import` that brings `wibble` into scope. 27 + Hint: Either rename the definition or remove its import.
+11 -11
compiler-core/src/type_/tests/snapshots/gleam_core__type___tests__warnings__shadow_imported_constant.snap
··· 1 1 --- 2 2 source: compiler-core/src/type_/tests/warnings.rs 3 - expression: "\nimport module.{foo}\n\npub const foo = 1\n" 3 + expression: "\nimport module.{value}\n\npub const value = 1\n" 4 4 --- 5 5 ----- SOURCE CODE 6 6 -- module.gleam 7 7 8 - pub const foo = 1 8 + pub const value = 1 9 9 10 10 11 11 -- main.gleam 12 12 13 - import module.{foo} 13 + import module.{value} 14 14 15 - pub const foo = 1 15 + pub const value = 1 16 16 17 17 18 18 ----- WARNING 19 19 warning: Unused imported module 20 20 ┌─ /src/warning/wrn.gleam:2:1 21 21 22 - 2 │ import module.{foo} 23 - │ ^^^^^^^^^^^^^^^^^^^ This imported module is never used 22 + 2 │ import module.{value} 23 + │ ^^^^^^^^^^^^^^^^^^^^^ This imported module is never used 24 24 25 25 Hint: You can safely remove it. 26 26 27 - warning: `foo` shadows an imported name 27 + warning: Shadowed Import 28 28 ┌─ /src/warning/wrn.gleam:4:1 29 29 30 - 4 │ pub const foo = 1 31 - │ ^^^^^^^^^^^^^ `foo` is defined here 30 + 4 │ pub const value = 1 31 + │ ^^^^^^^^^^^^^^^ `value` is defined here 32 32 33 - Definition of `foo` shadows an imported value. 33 + Definition of value shadows an imported value. 34 34 The imported value could not be used in this module anyway. 35 - Hint: Either rename `foo` or remove the `import` that brings `foo` into scope. 35 + Hint: Either rename the definition or remove its import.
+3 -3
compiler-core/src/type_/tests/snapshots/gleam_core__type___tests__warnings__shadow_imported_function.snap
··· 24 24 25 25 Hint: You can safely remove it. 26 26 27 - warning: `wibble` shadows an imported name 27 + warning: Shadowed Import 28 28 ┌─ /src/warning/wrn.gleam:4:1 29 29 30 30 4 │ pub fn wibble() { Nil } 31 31 │ ^^^^^^^^^^^^^^^ `wibble` is defined here 32 32 33 - Definition of `wibble` shadows an imported value. 33 + Definition of wibble shadows an imported value. 34 34 The imported value could not be used in this module anyway. 35 - Hint: Either rename `wibble` or remove the `import` that brings `wibble` into scope. 35 + Hint: Either rename the definition or remove its import.
+3 -3
compiler-core/src/type_/tests/snapshots/gleam_core__type___tests__warnings__unused_alias_warning_test.snap
··· 24 24 import gleam/wibble as _ 25 25 26 26 27 - warning: `one` shadows an imported name 27 + warning: Shadowed Import 28 28 ┌─ /src/warning/wrn.gleam:3:13 29 29 30 30 3 │ pub const one = one 31 31 │ ^^^^^^^^^^^^^ `one` is defined here 32 32 33 - Definition of `one` shadows an imported value. 33 + Definition of one shadows an imported value. 34 34 The imported value could not be used in this module anyway. 35 - Hint: Either rename `one` or remove the `import` that brings `one` into scope. 35 + Hint: Either rename the definition or remove its import.