Skip to content

Commit

Permalink
Add test for RT #125249
Browse files Browse the repository at this point in the history
  • Loading branch information
usev6 committed May 26, 2015
1 parent ac62893 commit 3f4554b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion S09-hashes/objecthash.t
@@ -1,7 +1,7 @@
use v6;
use Test;

plan 32;
plan 33;

{
class A { method Str() { 'foo' } };
Expand Down Expand Up @@ -74,3 +74,9 @@ plan 32;
%h{Any}=1;
ok %h{Any}:exists, '.exists returns True on a %h{Any} in a TypedHash';
}

# RT #125249
{
lives-ok { my %h = my %x{Date}; },
'declaring empty object hash on rhs of assignment to hash does not die with "Cannot look up attributes in a type object"';
}

0 comments on commit 3f4554b

Please sign in to comment.