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
{{ message }}
Repository navigation
8000
make for a type that does not exist passes the checker #772
A make block names a type that is not defined anywhere, and nothing is reported.
make Usr do
let x -> Integer = 1
end
main do
IO.printLine(1)
end
kex -C says No errors found., and the program runs. With a typo in the type name (Usr for User), the error only shows up at the call, and it names the type that does not exist:
example.kex:10:16: [KEXET-0491]: Error, `shout` expects argument 1 to be Usr, but got User
shout : Usr -> String
Expected: an unknown-type error at the make line, like KEXET-0145 or KEXET-0130 for an unknown trait.
Seen on kex 0.4.0-rc.4 built from main at 371bbdf, and on 5773911. Found while writing explanations for oops.kex.run.
Activity