﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
2612	Au3Check bugs on function reference when function takes byref parameter	jchd18	Jpm	"Code to trigger the issue:
{{{
Local $f = function
Local $s = 'xxx'
$f($s)

; function declaration needs to be after function reference assignment for the bug to occur
Func function(ByRef $title)
	MsgBox(0, $title, 'function invoked')
EndFunc
}}}
Au3Check gets confused and raises an error:
{{{
>""C:\Program Files (x86)\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe"" /run /beta /ErrorStdOut /in ""C:\Users\jc\Documents\AutoMAT\tmp\fct.au3"" /UserParams    
+>00:45:12 Starting AutoIt3Wrapper v.2.1.4.0 SciTE v.3.3.7.0 ;  Keyboard:0000040C  OS:WIN_7/Service Pack 1  CPU:X64 OS:X64    Environment(Language:040C  Keyboard:0000040C  OS:WIN_7/Service Pack 1  CPU:X64 OS:X64)
>Running AU3Check (3.3.11.2)  from:C:\Program Files (x86)\AutoIt3\Beta
""C:\Users\jc\Documents\AutoMAT\tmp\fct.au3""(15,28) : error: function() previously called with Const or expression on ByRef param(s).
Func function(ByRef $title)
~~~~~~~~~~~~~~~~~~~~~~~~~~~^
""C:\Users\jc\Documents\AutoMAT\tmp\fct.au3""(10,20) : REF: first call to function().
Local $f = function
~~~~~~~~~~~~~~~~~~~^
C:\Users\jc\Documents\AutoMAT\tmp\fct.au3 - 1 error(s), 0 warning(s)
}}}
Non-beta version 3.3.10.2 behaves identically.
"	Bug	closed	3.3.11.5	Au3Check	3.3.11.2	None	Fixed		
