// one.gleam
pub type Something {
Something(Int)
}
// two.gleam
import one.{type Something}
pub fn get_something() -> Something {
Something(1)
}
output:
❯ gleam run
Compiling blocks
error: Unknown variable
┌─ /Users/benjamin/Projects/gleamtest/src/two.gleam:4:3
│
4 │ Something(1)
│ ^^^^^^^^^ Did you mean `get_something`?
The name `Something` is not in scope here.