pub fn foo() -> String {
#("gleam")
|> fn(x) { x.0 }
}
Gives:
1 │ |> fn(x) { x.0 }
│ ^ What type is this?
To index into a tuple we need to know it size, but we don't know
anything about this type yet. Please add some type annotations so
we can continue.
Could the type inference potentially work in this case, or is there some other issue/consideration?