@@ -42,27 +42,25 @@ class C is B {
42
42
43
43
$ c . cnt = 0 ;
44
44
$ c .? " $ foo" ();
45
+ # ?rakudo skip 'interaction of calling sets with dyanmic method names'
45
46
is $ c . cnt, 1 , ' .? with dynamic method name' ;
46
47
47
48
$ c . cnt = 0 ;
48
49
$ c .* " $ foo" ();
50
+ # ?rakudo skip 'interaction of calling sets with dyanmic method names'
49
51
is $ c . cnt, 7 , ' .* with dynamic method name' ;
50
52
51
53
$ c . cnt = 0 ;
54
+ # ?rakudo emit #
52
55
$ c .+ " $ foo" ();
56
+ # ?rakudo skip 'interaction of calling sets with dyanmic method names'
53
57
is $ c . cnt, 7 , ' .+ with dynamic method name' ;
54
58
55
- $ lived = 0 ;
56
- try { $ c . " ?foo" (); $ lived = 1 ; }
57
- is $ lived , 0 , ' ? at start of dynamic name does not imply .?' ;
59
+ dies_ok { $ c . " ?foo" () }, ' ? at start of dynamic name does not imply .?' ;
58
60
59
- $ lived = 0 ;
60
- try { $ c . " +foo" (); $ lived = 1 ; }
61
- is $ lived , 0 , ' + at start of dynamic name does not imply .+' ;
61
+ dies_ok { $ c . " +foo" () }, ' + at start of dynamic name does not imply .+' ;
62
62
63
- $ lived = 0 ;
64
- try { $ c . " *foo" (); $ lived = 1 ; }
65
- is $ lived , 0 , ' * at start of dynamic name does not imply .*' ;
63
+ dies_ok { $ c . " *foo" () }, ' * at start of dynamic name does not imply .*' ;
66
64
}
67
65
68
66
@@ -78,6 +76,7 @@ class E is D {
78
76
multi method foo ($ x ) { $ . cnt ++ } # OK not used
79
77
}
80
78
79
+ # ?rakudo skip 'ambiguous dispatch'
81
80
{
82
81
my $ e = E. new ();
83
82
0 commit comments