Repro
zig.yml
globals:
z2.ecs.create_entity:
args: []
must_use: true
selene.toml
repro.lua
local ecs = z2.ecs
local e = ecs.create_entity(3) -- `z2.ecs.create_entity` requires 0 parameters and 1 was passed
Expected behavior
Selene should report something like: Selene should report that z2.ecs.create_entity requires 0 parameters and 1 was passed (because ecs is just a local alias of z2.ecs.)
This applies to standard-library definitions, including libraries that I define in my own yml files.
What actually happens
No standard-library warning is reported once the table is assigned to a local:
local ecs = z2.ecs
local e = ecs.create_entity(3)
The direct form does warn:
local e = z2.ecs.create_entity(3)
Suggested fix
I'm working on a PR for this.
Repro
zig.ymlselene.tomlrepro.luaExpected behavior
Selene should report something like:
Selene should report thatz2.ecs.create_entityrequires 0 parameters and 1 was passed(becauseecsis just a local alias ofz2.ecs.)This applies to standard-library definitions, including libraries that I define in my own yml files.
What actually happens
No standard-library warning is reported once the table is assigned to a local:
The direct form does warn:
Suggested fix
I'm working on a PR for this.