Skip to content

Commit

Permalink
Test for RT #114716
Browse files Browse the repository at this point in the history
(class {}) is now !=== (class {})
  • Loading branch information
niner committed Oct 11, 2015
1 parent ce9d2a5 commit 84115c6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion S12-class/anonymous.t
Expand Up @@ -3,7 +3,7 @@ use v6;
use Test;

# L<S12/Classes/"Perl 6 supports multiple inheritance, anonymous classes">
plan 17;
plan 18;

# Create and instantiate empty class; check .WHAT works and stringifies to
# empty string.
Expand Down Expand Up @@ -73,4 +73,9 @@ is($t3.x, 42, 'anonymous classes can have attributes');
throws-like q[anon class C { }; C.WHAT; ], X::Undeclared::Symbols,
'anon class is actually anon';

# RT 114716
{
ok (class {}) !=== (class {}), 'anonymous classes are distinct';
}

# vim: ft=perl6

0 comments on commit 84115c6

Please sign in to comment.