﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
1293	"odd value returned when assigning ""default"" to Scripting.Dictionary"	Gabriel13		"When the AutoIt ""default"" value is assigned to a Scripting.Dictionary object, and later retrieved, the result is no longer ""default"".

Instead, it becomes a strange ""falsy"" value which varGetType() identifies as ""Object"", yet it fails the isObj() test.

The code below illustrates what happens - I've also confirmed that this issue is present in the latest beta (3.3.1.5).

{{{
func testDictionary($v)
	local $d=objCreate('Scripting.Dictionary')
	$d.add('x',$v)
	return $d.item('x')
endfunc

msgbox(0,default,@AutoItVersion)

local $v=default
msgbox(0,default,'""' & string($v) & '""' & @LF & varGetType($v) & @LF & isObj($v))
; returns ""Default"", Keyword, 0

; assign to dictionary & then retrieve
$v=testDictionary($v)
msgbox(0,default,'""' & string($v) & '""' & @LF & varGetType($v) & @LF & isObj($v))
; returns """", Object, 0

if $v then
	msgbox(0,default,'truey')
else
	msgbox(0,default,'falsy')
endif
; returns ""falsy""
}}}"	Bug	closed		AutoIt	3.3.0.0	None	No Bug		
