# OBJECT
# - overloaded
$ov_obj "key"
- $ov_obj {"key" => 1}
! $ov_obj "foo"
+ $ov_obj {"key" => 1}
+! $ov_obj {"foo" => 1}
+ $ov_obj ["key" => 1]
+! $ov_obj ["foo" => 1]
$ov_obj sub { shift ~~ "key" }
! $ov_obj sub { shift ~~ "foo" }
! $ov_obj \&foo
+ $ov_obj \&bar
@ $ov_obj \&fatal
! $ov_obj FALSE
! $ov_obj \&FALSE
! $ov_obj undef
+ $ov_obj $ov_obj
# regular object
@ $obj "key"
@ $obj {"key" => 1}
-@ $obj $obj
+@ $obj ["key" => 1]
@ $obj sub { 1 }
@ $obj sub { 0 }
@ $obj \&foo
@ $obj FALSE
@ $obj \&FALSE
! $obj undef
+@ $obj $obj
# CODE ref against argument
# - arg is code ref
@ [] \&fatal
@ "foo" \&fatal
@ qr// \&fatal
-@ $obj \&bar
- $ov_obj \&bar
# - null-prototyped subs
a_const "a constant"