You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
importfooimportgleam/iopubfnmain(){letfoo=foo.make_wibble()foo.wobble()io.println("edit this line to change state")}
and a module foo (this has to match name used in the let binding!) with
importgleam/iopubopaquetypeWibble{Wibble(wobble:Int)}pubfnwobble(){io.debug("edit this line to change state")}pubfnmake_wibble()->Wibble{Wibble(1)}
Depending on which file has been edited last, the program will either run fine, or report
error: Type mismatch
┌─ /home/sbergen/source/repro/src/repro.gleam:6:6
│
6 │ foo.wobble()
│ ^^^^^^^
This value is being called as a function but its type is:
Int
Gleam version: 1.6.3
The text was updated successfully, but these errors were encountered:
Given a main package source file of
and a module
foo
(this has to match name used in the let binding!) withDepending on which file has been edited last, the program will either run fine, or report
Gleam version: 1.6.3
The text was updated successfully, but these errors were encountered: