Skip to content

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

@ghost

Description

Some code should explain it better:

function ks_function
	tcm_function(1)
end function

taskfunc tcm_function(param)
	message(param)
end taskfunc

on init
	tcm.init(10)
	declare ui_switch switch
end on

on ui_control(switch)
	ks_function
end on

Compile error: wrong number of parameters to tcm_function. Expected 1, got 0
works if you 'call' ks_function.
Works if the functions are declared after 'on init' and after 'on ui_control(switch). So why not do that? Because it's a bit messy and it might affect larger projects.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions