﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
3108	"function with optional parameters run via AdlibRegister() fails with ""Variable used without being declared"""	alex@…		"Given the following definition:

{{{
Func MyFunc($vVar = 123)
    MsgBox(0, 'MyFunc()', '$vVar = ' & $vVar)
EndFunc
}}}

I expect the `MyFunc()` function to run with `$vVar` set to `123` if called as `MyFunc()`.

When run normally, the behaviour is as expected.

When run via `AdlibRegister()`, a ""Variable used without being declared"" error occurs.

{{{
MyFunc(456)
MyFunc()

AdlibRegister('MyFunc', 400)
Sleep(500)
AdlibUnRegister('MyFunc')
}}}"	Bug	closed		AutoIt	3.3.14.0	None	No Bug		
