compiler-core/src/javascript/tests/snapshots/gleam_core__javascript__tests__functions__private_function_gets_ignored_jsdoc.snap.new
compiler-core/src/javascript/tests/snapshots/gleam_core__javascript__tests__functions__private_function_gets_ignored_jsdoc.snap
compiler-core/src/javascript/tests/snapshots/gleam_core__javascript__tests__functions__private_function_gets_ignored_jsdoc.snap.new
compiler-core/src/javascript/tests/snapshots/gleam_core__javascript__tests__functions__private_function_gets_ignored_jsdoc.snap
+3
-1
compiler-core/src/type_/tests/snapshots/gleam_core__type___tests__dead_code_detection__shadowed_imported_value_marked_unused.snap
+3
-1
compiler-core/src/type_/tests/snapshots/gleam_core__type___tests__dead_code_detection__shadowed_imported_value_marked_unused.snap
···
1
1
---
2
2
source: compiler-core/src/type_/tests/dead_code_detection.rs
3
+
assertion_line: 431
3
4
expression: "\nimport wibble.{wibble}\n\npub const wibble = 2\n"
5
+
snapshot_kind: text
4
6
---
5
7
----- SOURCE CODE
6
8
-- wibble.gleam
···
32
34
33
35
Definition of wibble shadows an imported value.
34
36
The imported value could not be used in this module anyway.
35
-
Hint: Either rename the definition or remove its import.
37
+
Hint: Either rename the definition or remove the import.
+3
-1
compiler-core/src/type_/tests/snapshots/gleam_core__type___tests__dead_code_detection__used_shadowed_imported_value.snap
+3
-1
compiler-core/src/type_/tests/snapshots/gleam_core__type___tests__dead_code_detection__used_shadowed_imported_value.snap
···
1
1
---
2
2
source: compiler-core/src/type_/tests/dead_code_detection.rs
3
+
assertion_line: 448
3
4
expression: "\nimport wibble.{wibble}\n\npub const wibble = wibble\n"
5
+
snapshot_kind: text
4
6
---
5
7
----- SOURCE CODE
6
8
-- wibble.gleam
···
24
26
25
27
Definition of wibble shadows an imported value.
26
28
The imported value could not be used in this module anyway.
27
-
Hint: Either rename the definition or remove its import.
29
+
Hint: Either rename the definition or remove the import.
+3
-1
compiler-core/src/type_/tests/snapshots/gleam_core__type___tests__warnings__shadow_imported_constant.snap
+3
-1
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
+
assertion_line: 3950
3
4
expression: "\nimport module.{value}\n\npub const value = 1\n"
5
+
snapshot_kind: text
4
6
---
5
7
----- SOURCE CODE
6
8
-- module.gleam
···
32
34
33
35
Definition of value shadows an imported value.
34
36
The imported value could not be used in this module anyway.
35
-
Hint: Either rename the definition or remove its import.
37
+
Hint: Either rename the definition or remove the import.
+3
-1
compiler-core/src/type_/tests/snapshots/gleam_core__type___tests__warnings__shadow_imported_function.snap
+3
-1
compiler-core/src/type_/tests/snapshots/gleam_core__type___tests__warnings__shadow_imported_function.snap
···
1
1
---
2
2
source: compiler-core/src/type_/tests/warnings.rs
3
+
assertion_line: 3932
3
4
expression: "\nimport module.{wibble}\n\npub fn wibble() { Nil }\n"
5
+
snapshot_kind: text
4
6
---
5
7
----- SOURCE CODE
6
8
-- module.gleam
···
32
34
33
35
Definition of wibble shadows an imported value.
34
36
The imported value could not be used in this module anyway.
35
-
Hint: Either rename the definition or remove its import.
37
+
Hint: Either rename the definition or remove the import.
+3
-1
compiler-core/src/type_/tests/snapshots/gleam_core__type___tests__warnings__unused_alias_warning_test.snap
+3
-1
compiler-core/src/type_/tests/snapshots/gleam_core__type___tests__warnings__unused_alias_warning_test.snap
···
1
1
---
2
2
source: compiler-core/src/type_/tests/warnings.rs
3
+
assertion_line: 974
3
4
expression: "\n import gleam/wibble.{one} as wobble\n pub const one = one\n "
5
+
snapshot_kind: text
4
6
---
5
7
----- SOURCE CODE
6
8
-- gleam/wibble.gleam
···
32
34
33
35
Definition of one shadows an imported value.
34
36
The imported value could not be used in this module anyway.
35
-
Hint: Either rename the definition or remove its import.
37
+
Hint: Either rename the definition or remove the import.
+3
-3
compiler-core/src/warning.rs
+3
-3
compiler-core/src/warning.rs
···
1305
1305
1306
1306
type_::Warning::TopLevelDefinitionShadowsImport { location, name } => {
1307
1307
let text = format!(
1308
-
"Definition of {} shadows an imported value.\n\
1309
-
The imported value could not be used in this module anyway.",
1308
+
"Definition of {} shadows an imported value.
1309
+
The imported value could not be used in this module anyway.",
1310
1310
name
1311
1311
);
1312
1312
Diagnostic {
···
1322
1322
},
1323
1323
extra_labels: Vec::new(),
1324
1324
}),
1325
-
hint: Some("Either rename the definition or remove its import.".into()),
1325
+
hint: Some("Either rename the definition or remove the import.".into()),
1326
1326
}
1327
1327
}
1328
1328
},