Skip to content

Commit

Permalink
Tests for RT #126606.
Browse files Browse the repository at this point in the history
  • Loading branch information
jnthn committed Dec 12, 2015
1 parent ae54d6c commit 0a6fd2c
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion S14-roles/stubs.t
@@ -1,7 +1,7 @@
use v6;
use Test;

plan 14;
plan 28;

role WithStub { method a() { ... } };
role ProvidesStub1 { method a() { 1 } };
Expand Down Expand Up @@ -59,3 +59,11 @@ throws-like { EVAL 'my role F119643 { ... }; class C119643 does F119643 {}' },
my class C does B does A { }
is C.new.bar(), "success!", 'private method call in role dispatches on type of target class';
}

# RT #126606
{
my role R { method m() { ... } }
for <gist perl DUMP item Str Bool defined so not WHICH WHERE Stringy Numeric Real> {
lives-ok { R."$_"() }, ".$_ on role with requirement does not pun it and die";
}
}

0 comments on commit 0a6fd2c

Please sign in to comment.