Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fudge test for role mixin on JVM
  • Loading branch information
usev6 committed Nov 21, 2015
1 parent 9aa4c45 commit 28cafa5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions S14-roles/basic.t
Expand Up @@ -75,6 +75,7 @@ lives-ok { my C $x; }, 'can use role as a type constraint on a variable
dies-ok { my C $x = 42 }, 'type-check enforced';
dies-ok { my C $x; $x = 42 }, 'type-check enforced in future assignments too';
lives-ok {my C $x = DoesC.new },'type-check passes for class doing role';
#?rakudo.jvm todo 'Type check failed in assignment to $x; expected C but got Int'
lives-ok { my C $x = 42 but C },'type-check passes when role mixed in';

class HasC {
Expand Down

0 comments on commit 28cafa5

Please sign in to comment.