teal-language / tl

The compiler for Teal, a typed dialect of Lua
MIT License
2.12k stars 107 forks source link

Required parameters not checked. #719

Closed jordan4ibanez closed 11 months ago

jordan4ibanez commented 11 months ago

I do not know if this is intentional behavior, but when I do the following:

local x1: number = 5

local function blah(x: number, y: number): number
  return x + y
end

-- Should have an error here.
blah(x1)

It will just run as normal but then error out as there is no y argument given.

lenscas commented 11 months ago

See #71 and #598

hishamhm commented 11 months ago

Closed as duplicate