﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
3096	Confusing error message when initializing default argument with undeclared variable	Bo-Cheng Jhan		"On this example:

; Begin of test.au3
test(1)

Func test($x, $y = $z)
; $z is not declared.
EndFunc
; End of test.au3

This script causes the following error:

test(1)
test(1)^ ERROR
Error: Variable used without being declared.

However, it is no ""variable"" found in this line. The actual problem is in $z, so the following error message will be more readable:

Func test($x, $y = $z)
Func test($x, $y = ^ ERROR
Error: Variable used without being declared.
"	Bug	closed		AutoIt	3.3.14.0	None	No Bug	error message, default argument, undeclared variable	
