Skip to content

Commit

Permalink
Test autogenerated methods show up in .^methods
Browse files Browse the repository at this point in the history
  • Loading branch information
zoffixznet committed Dec 11, 2017
1 parent f1be29c commit 20d67a3
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions t/05-messages/02-errors.t
Expand Up @@ -2,7 +2,7 @@ use lib <t/packages/>;
use Test;
use Test::Helpers;

plan 3;
plan 4;

# RT #132295

Expand All @@ -22,6 +22,10 @@ throws-like {
react whenever l() {
whenever l() {} # try to listen on already open sock
}
}, X::AdHoc, message => /'something good'/
}, X::AdHoc, message => /'something good'/;

# RT #132283
is-deeply class { has $.bar }.^methods».name.sort, <BUILDALL bar>,
'auto-generated methods present in .^methods';

# vim: ft=perl6 expandtab sw=4

0 comments on commit 20d67a3

Please sign in to comment.