{ package Str; }
BEGIN {
- plan tests => 2 * 6;
+ plan tests => 2 * 8;
}
use Lexical::Types as => 'Lexical::Types::Test';
return $want ? @ret : $ret[0];
}
+sub zzz {
+ my $d = Variable::Magic::getdata($_[0], $Lexical::Types::Test::Str::wiz);
+ isnt $d, undef, 'typed lexicals are tagged';
+ is ref($d), 'HASH', 'typed lexicals are correctly tagged';
+}
+
for (1 .. 2) {
my Str $x = "abc";
my Str $z;
check { $z = "bar" . $x } $z, { set => 1 }, 'scalar assign';
is $z, 'barabcfoo', 'scalar assign correctly';
+
+ zzz($z);
}