8000 `make` for a type that does not exist passes the checker · Issue #772 · kexhq/kex · GitHub
[go: up one dir, main page]

Skip to content
8000

make for a type that does not exist passes the checker #772

Open

Description

@akoskovacs

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0