Cannot assign `function|table` to parameter `function`.
Mailaender opened this issue · comments
The issue here is that the base Lua extension - https://marketplace.visualstudio.com/items?itemName=sumneko.lua detects VehicleProduction
, the function in this script (allies02.lua) and also detects VehicleProduction
, the table in nod09-AI.lua because it doesn't care what global is in what file. So it decides that VehicleProduction
's type is function|table
.
Probably nothing we can do unless we find a way to limit our mission globals to their own files (maybe via naming conventions?).
You are right that functions and tables from other files clashed here. Renamed them in OpenRA/OpenRA#20698.