nojanath / SublimeKSP

Fork of Nils Liberg's SublimeKSP plugin. See README for details.
GNU General Public License v3.0
87 stars 18 forks source link

Issue with inlined function calling a taskfunc with an argument #330

Closed mkruselj closed 1 year ago

mkruselj commented 1 year ago
on init
    declare var
    declare ui_button Test
end on

taskfunc foo(arg)
    message(arg)
end taskfunc

function bar()
    var := random(0, 100)
    foo(var)
end function

on ui_control (Test)
    bar()
end on

This code will throw an error saying that function expected one argument but got none, which is entirely unexpected.

mkruselj commented 1 year ago

After investigation, this is the same issue as #97, so closing this one as it's a duplicate.