Skip to content

Commit

Permalink
Unfudge multi/role/conflict tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
jnthn committed Dec 20, 2015
1 parent d4539a5 commit 4bf7660
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions S14-roles/composition.t
Expand Up @@ -199,10 +199,9 @@ ok rB !~~ RT64002, 'role not matched by second role it does';
multi method m(Int $x) { 101 }
multi method m(Str $x) { 'dalmatians' }
}
#?rakudo 2 todo 'multi composition conflict'
dies-ok { EVAL 'my class C5 does R2 does R3 { }'; CATCH { $msg = .message } },
'multis with same sig are composition conflicts (1)';
ok $msg ~~ /conflict/, 'multis with same sig are composition conflicts (2)';
ok $msg ~~ /'multiple roles'/, 'multis with same sig are composition conflicts (2)';
my class C6 does R2 does R3 {
multi method m(Int $x) { 11 }
multi method m(Str $x) { 'pipers' }
Expand Down

0 comments on commit 4bf7660

Please sign in to comment.