···1111/// This class keeps track of what names are used for modules in the current
1212/// scope, so they can be printed in errors, etc.
1313///
1414-#[derive(Debug, Clone, PartialEq, Eq, Default)]
1414+#[derive(Debug, Clone, PartialEq, Eq, Default, serde::Serialize, serde::Deserialize)]
1515pub struct Names {
1616 /// Types that exist in the current module, either defined or imported in an
1717 /// unqualified fashion.
···11+---
22+source: compiler-core/src/type_/tests/warnings.rs
33+expression: "\npub fn curry(_f: fn(a, b) -> c) -> fn(a) -> fn(b) -> c {\n fn(_a: a) {\n todo\n }\n}"
44+---
55+----- SOURCE CODE
66+77+pub fn curry(_f: fn(a, b) -> c) -> fn(a) -> fn(b) -> c {
88+ fn(_a: a) {
99+ todo
1010+ }
1111+}
1212+1313+----- WARNING
1414+warning: Todo found
1515+ ┌─ /src/warning/wrn.gleam:4:5
1616+ │
1717+4 │ todo
1818+ │ ^^^^ This code is incomplete
1919+2020+This code will crash if it is run. Be sure to finish it before
2121+running your program.
2222+2323+Hint: I think its type is `fn(b) -> c`.
···11+---
22+source: compiler-core/src/type_/tests/warnings.rs
33+expression: "\nimport wibble\npub fn main() {\n wibble.consume(todo)\n}"
44+---
55+----- SOURCE CODE
66+-- wibble.gleam
77+88+ pub type Wibble
99+ pub fn consume(wibble: Wibble) -> Nil { todo }
1010+1111+1212+-- main.gleam
1313+1414+import wibble
1515+pub fn main() {
1616+ wibble.consume(todo)
1717+}
1818+1919+----- WARNING
2020+warning: Todo found
2121+ ┌─ /src/warning/wrn.gleam:4:18
2222+ │
2323+4 │ wibble.consume(todo)
2424+ │ ^^^^ This code is incomplete
2525+2626+This code will crash if it is run. Be sure to finish it before
2727+running your program.
2828+2929+Hint: I think its type is `wibble.Wibble`.