···11---
22source: compiler-core/src/erlang/tests/external_fn.rs
33expression: "\n// This will error for having no support on this platform\n@external(erlang, \"one\", \"two\")\npub fn no_impl() -> Int\n\npub fn main() {\n // This will due to no_impl not having an appropriate implementation for the\n // target, NOT because it doesn't exist. The analyser should still know about\n // it, even though it is invalid.\n no_impl()\n}\n"
44-snapshot_kind: text
54---
65----- SOURCE CODE
76
···11---
22source: compiler-core/src/javascript/tests/case_clause_guards.rs
33expression: "import gleam.{Ok as Y}\npub type X {\n Ok\n}\nfn func() {\n case Y {\n y if y == Y -> True\n _ -> False\n }\n}\n"
44-snapshot_kind: text
54---
65----- SOURCE CODE
76import gleam.{Ok as Y}
···11----
22-source: compiler-core/src/type_/tests/functions.rs
33-expression: "\npub fn main() {\n case 1.0 + 1.0, 2.0 + 2.0 {\n _, _ -> 0\n }\n}\n"
44----
55-error: Type mismatch
66- ┌─ /src/one/two.gleam:3:8
77- │
88-3 │ case 1.0 + 1.0, 2.0 + 2.0 {
99- │ ^^^
1010-1111-The + operator expects arguments of this type:
1212-1313- Int
1414-1515-But this argument has this type:
1616-1717- Float
1818-1919-Hint: the +. operator can be used with Floats
2020-2121-2222-error: Type mismatch
2323- ┌─ /src/one/two.gleam:3:19
2424- │
2525-3 │ case 1.0 + 1.0, 2.0 + 2.0 {
2626- │ ^^^
2727-2828-The + operator expects arguments of this type:
2929-3030- Int
3131-3232-But this argument has this type:
3333-3434- Float
3535-3636-Hint: the +. operator can be used with Floats
···11----
22-source: compiler-core/src/type_/tests/warnings.rs
33-expression: "\n pub fn main() {\n let letters = [\"b\", \"c\"]\n [\"a\"..letters]\n }\n "
44----
55-warning: Deprecated prepend syntax
66- ┌─ /src/warning/wrn.gleam:4:11
77- │
88-4 │ ["a"..letters]
99- │ ^^ This spread should be preceded by a comma
1010-1111-This syntax for prepending to a list is deprecated.
1212-When prepending an item to a list it should be preceded by a comma, like
1313-this: `[item, ..list]`.