···7878 // user.name
7979 // ^^^^^^^^^
8080 location: SrcSpan,
8181- // This is the location of just the field access
8181+ // This is the location of just the field access (ignoring the `.`)
8282 // user.name
8383- // ^^^^^
8383+ // ^^^^
8484 label_location: SrcSpan,
8585 label: EcoString,
8686 container: Box<Self>,
···21212222----- ERROR
2323error: Unknown record field
2424- ┌─ /src/one/two.gleam:13:4
2424+ ┌─ /src/one/two.gleam:13:5
2525 │
262613 │ a.b
2727- │ ^^ Did you mean `a`?
2727+ │ ^ Did you mean `a`?
28282929The value being accessed has this type:
3030
···20202121----- ERROR
2222error: Unknown record field
2323- ┌─ /src/one/two.gleam:12:4
2323+ ┌─ /src/one/two.gleam:12:5
2424 │
252512 │ x.b
2626- │ ^^ This field does not exist
2626+ │ ^ This field does not exist
27272828The value being accessed has this type:
2929
···7788----- ERROR
99error: Unknown record field
1010- ┌─ /src/one/two.gleam:1:12
1010+ ┌─ /src/one/two.gleam:1:13
1111 │
12121 │ let x = 1 x.whatever
1313- │ ^^^^^^^^^ This field does not exist
1313+ │ ^^^^^^^^ This field does not exist
14141515The value being accessed has this type:
1616
···13131414----- ERROR
1515error: Unknown record field
1616- ┌─ /src/one/two.gleam:7:40
1616+ ┌─ /src/one/two.gleam:7:41
1717 │
18187 │ pub fn get_age(person: Person) { person.age }
1919- │ ^^^^ Did you mean `name`?
1919+ │ ^^^ Did you mean `name`?
20202121The value being accessed has this type:
2222
···13131414----- ERROR
1515error: Unknown record field
1616- ┌─ /src/one/two.gleam:6:41
1616+ ┌─ /src/one/two.gleam:6:42
1717 │
18186 │ pub fn get_name(person: Person) { person.name }
1919- │ ^^^^^ Did you mean `age`?
1919+ │ ^^^^ Did you mean `age`?
20202121The value being accessed has this type:
2222
···12121313----- ERROR
1414error: Unknown record field
1515- ┌─ /src/one/two.gleam:6:42
1515+ ┌─ /src/one/two.gleam:6:43
1616 │
17176 │ pub fn get_title(person: Person) { person.title }
1818- │ ^^^^^^ This field does not exist
1818+ │ ^^^^^ This field does not exist
19192020The value being accessed has this type:
2121
···12121313----- ERROR
1414error: Unknown record field
1515- ┌─ /src/one/two.gleam:6:43
1515+ ┌─ /src/one/two.gleam:6:44
1616 │
17176 │ pub fn get_height(person: Person) { person.height }
1818- │ ^^^^^^^ This field does not exist
1818+ │ ^^^^^^ This field does not exist
19192020The value being accessed has this type:
2121
···13131414----- ERROR
1515error: Unknown record field
1616- ┌─ /src/one/two.gleam:6:35
1616+ ┌─ /src/one/two.gleam:6:36
1717 │
18186 │ pub fn get_x(shape: Shape) { shape.x }
1919- │ ^^ This field does not exist
1919+ │ ^ This field does not exist
20202121The value being accessed has this type:
2222
···15151616----- ERROR
1717error: Unknown record field
1818- ┌─ /src/one/two.gleam:7:7
1818+ ┌─ /src/one/two.gleam:7:8
1919 │
20207 │ user.login()
2121- │ ^^^^^^ This field does not exist
2121+ │ ^^^^^ This field does not exist
22222323The value being accessed has this type:
2424
···19192020----- ERROR
2121error: Unknown record field
2222- ┌─ /src/one/two.gleam:11:13
2222+ ┌─ /src/one/two.gleam:11:14
2323 │
242411 │ login(user.wibble)
2525- │ ^^^^^^^ This field does not exist
2525+ │ ^^^^^^ This field does not exist
26262727The value being accessed has this type:
2828
···15151616----- ERROR
1717error: Unknown record field
1818- ┌─ /src/one/two.gleam:7:14
1818+ ┌─ /src/one/two.gleam:7:15
1919 │
20207 │ User("Jak").nam
2121- │ ^^^^ Did you mean `name`?
2121+ │ ^^^ Did you mean `name`?
22222323The value being accessed has this type:
2424
···16161717----- ERROR
1818error: Type mismatch
1919- ┌─ /src/one/two.gleam:4:13
1919+ ┌─ /src/one/two.gleam:4:10
2020 │
21214 │ Nil |> mod.takes_wibble
2222- │ ^^^^^^^^^^^^^ This function does not accept the piped type
2222+ │ ^^^^^^^^^^^^^^^^ This function does not accept the piped type
23232424The argument is:
2525
···16161717----- ERROR
1818error: Unknown record field
1919- ┌─ /src/one/two.gleam:8:15
1919+ ┌─ /src/one/two.gleam:8:16
2020 │
21218 │ not_a_record.bits
2222- │ ^^^^^ This field does not exist
2222+ │ ^^^^ This field does not exist
23232424The value being accessed has this type:
2525
···17171818----- ERROR
1919error: Unknown record field
2020- ┌─ /src/one/two.gleam:9:16
2020+ ┌─ /src/one/two.gleam:9:17
2121 │
22229 │ always_wibble.wobble
2323- │ ^^^^^^^ Did you mean `wibble`?
2323+ │ ^^^^^^ Did you mean `wibble`?
24242525The value being accessed has this type:
2626
···7788----- ERROR
99error: Unknown record field
1010- ┌─ /src/one/two.gleam:1:13
1010+ ┌─ /src/one/two.gleam:1:14
1111 │
12121 │ fn(a: a) { a.field }
1313- │ ^^^^^^ This field does not exist
1313+ │ ^^^^^ This field does not exist
14141515The value being accessed has this type:
1616
···16161717----- ERROR
1818error: Unknown record field
1919- ┌─ /src/one/two.gleam:8:9
1919+ ┌─ /src/one/two.gleam:8:10
2020 │
21218 │ wibble.field
2222- │ ^^^^^^ This field does not exist
2222+ │ ^^^^^ This field does not exist
23232424The value being accessed has this type:
2525
···19192020----- ERROR
2121error: Unknown record field
2222- ┌─ /src/one/two.gleam:4:9
2222+ ┌─ /src/one/two.gleam:4:10
2323 │
24244 │ wibble.field
2525- │ ^^^^^^ This field does not exist
2525+ │ ^^^^^ This field does not exist
26262727The value being accessed has this type:
2828
···16161717----- ERROR
1818error: Unknown record field
1919- ┌─ /src/one/two.gleam:8:9
1919+ ┌─ /src/one/two.gleam:8:10
2020 │
21218 │ wibble.wibble
2222- │ ^^^^^^^ This field does not exist
2222+ │ ^^^^^^ This field does not exist
23232424The value being accessed has this type:
2525
···10101111----- ERROR
1212error: Unknown record field
1313- ┌─ /src/one/two.gleam:3:33
1313+ ┌─ /src/one/two.gleam:3:34
1414 │
15153 │ pub fn main(box: Box(Int)) { box.unknown }
1616- │ ^^^^^^^^ Did you mean `inner`?
1616+ │ ^^^^^^^ Did you mean `inner`?
17171818The value being accessed has this type:
1919
···991010----- ERROR
1111error: Unknown record field
1212- ┌─ /src/one/two.gleam:3:44
1212+ ┌─ /src/one/two.gleam:3:45
1313 │
14143 │ pub fn main(box: Box(Box(Int))) { box.inner.unknown }
1515- │ ^^^^^^^^ Did you mean `inner`?
1515+ │ ^^^^^^^ Did you mean `inner`?
16161717The value being accessed has this type:
1818
···15151616----- ERROR
1717error: Unsupported target
1818- ┌─ /src/one/two.gleam:3:9
1818+ ┌─ /src/one/two.gleam:3:10
1919 │
20203 │ module.javascript_only()
2121- │ ^^^^^^^^^^^^^^^^
2121+ │ ^^^^^^^^^^^^^^^
22222323This value is not available as it is defined using externals, and there is
2424no implementation for the Erlang target.
···18181919----- ERROR
2020error: Unsupported target
2121- ┌─ /src/one/two.gleam:3:9
2121+ ┌─ /src/one/two.gleam:3:10
2222 │
23233 │ module.javascript_only_constant()
2424- │ ^^^^^^^^^^^^^^^^^^^^^^^^^
2424+ │ ^^^^^^^^^^^^^^^^^^^^^^^^
25252626This value is not available as it is defined using externals, and there is
2727no implementation for the Erlang target.
···15151616----- ERROR
1717error: Unknown module value
1818- ┌─ /src/one/two.gleam:4:6
1818+ ┌─ /src/one/two.gleam:4:7
1919 │
20204 │ one.Two
2121- │ ^^^^
2121+ │ ^^^
22222323one.Two is a type constructor, it cannot be used as a value
···13131414----- WARNING
1515warning: Deprecated value used
1616- ┌─ /src/warning/wrn.gleam:5:9
1616+ ┌─ /src/warning/wrn.gleam:5:10
1717 │
18185 │ module.a()
1919- │ ^^ This value has been deprecated
1919+ │ ^ This value has been deprecated
20202121It was deprecated with this message: Don't use this!
···13131414----- WARNING
1515warning: Deprecated value used
1616- ┌─ /src/warning/wrn.gleam:5:9
1616+ ┌─ /src/warning/wrn.gleam:5:10
1717 │
18185 │ module.a
1919- │ ^^ This value has been deprecated
1919+ │ ^ This value has been deprecated
20202121It was deprecated with this message: Don't use this!
···13131414----- WARNING
1515warning: Deprecated value used
1616- ┌─ /src/warning/wrn.gleam:5:9
1616+ ┌─ /src/warning/wrn.gleam:5:10
1717 │
18185 │ module.a
1919- │ ^^ This value has been deprecated
1919+ │ ^ This value has been deprecated
20202121It was deprecated with this message: Don't use this!
···19192020----- WARNING
2121warning: Incompatible gleam version range
2222- ┌─ /src/warning/wrn.gleam:9:25
2222+ ┌─ /src/warning/wrn.gleam:9:26
2323 │
24249 │ Wibble(..) -> wibble.b
2525- │ ^^ This requires a Gleam version >= 1.6.0
2525+ │ ^ This requires a Gleam version >= 1.6.0
26262727Field access on custom types when the variant is known was introduced in
2828version v1.6.0. But the Gleam version range specified in your `gleam.toml`
···3333 gleam = ">= 1.6.0"
34343535warning: Incompatible gleam version range
3636- ┌─ /src/warning/wrn.gleam:10:25
3636+ ┌─ /src/warning/wrn.gleam:10:26
3737 │
383810 │ Wobble(..) -> wibble.c
3939- │ ^^ This requires a Gleam version >= 1.6.0
3939+ │ ^ This requires a Gleam version >= 1.6.0
40404141Field access on custom types when the variant is known was introduced in
4242version v1.6.0. But the Gleam version range specified in your `gleam.toml`
···14141515----- WARNING
1616warning: Unused value
1717- ┌─ /src/warning/wrn.gleam:5:9
1717+ ┌─ /src/warning/wrn.gleam:5:3
1818 │
19195 │ wibble.a
2020- │ ^^ This value is never used
2020+ │ ^^^^^^^^ This value is never used
···14141515----- WARNING
1616warning: Unused value
1717- ┌─ /src/warning/wrn.gleam:5:9
1717+ ┌─ /src/warning/wrn.gleam:5:3
1818 │
19195 │ wibble.Wibble
2020- │ ^^^^^^^ This value is never used
2020+ │ ^^^^^^^^^^^^^ This value is never used
···14141515----- WARNING
1616warning: Unused value
1717- ┌─ /src/warning/wrn.gleam:5:9
1717+ ┌─ /src/warning/wrn.gleam:5:3
1818 │
19195 │ wibble.println
2020- │ ^^^^^^^^ This value is never used
2020+ │ ^^^^^^^^^^^^^^ This value is never used
···17171818----- WARNING
1919warning: Unused value
2020- ┌─ /src/warning/wrn.gleam:8:8
2020+ ┌─ /src/warning/wrn.gleam:8:9
2121 │
22228 │ thing.value
2323- │ ^^^^^^ This value is never used
2323+ │ ^^^^^ This value is never used
···33expression: "./cases/opaque_type_accessor"
44---
55error: Unknown record field
66- ┌─ src/two.gleam:7:18
66+ ┌─ src/two.gleam:7:19
77 │
887 │ let name = user.name
99- │ ^ This field does not exist
99+ │ ^ This field does not exist
10101111The value being accessed has this type:
1212···1515It does not have any fields.
16161717error: Unknown record field
1818- ┌─ src/two.gleam:8:19
1818+ ┌─ src/two.gleam:8:20
1919 │
20208 │ let score = user.score
2121- │ ^ This field does not exist
2121+ │ ^ This field does not exist
22222323The value being accessed has this type:
2424
···33expression: "./cases/unknown_module_field_in_expression"
44---
55error: Unknown module value
66- ┌─ src/two.gleam:4:6
66+ ┌─ src/two.gleam:4:7
77 │
884 │ one.B
99- │ ^ Did you mean `A`?
99+ │ ^ Did you mean `A`?
10101111The module `one` does not have a `B` value.