File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 1
1
use v6 ;
2
2
use Test ;
3
3
4
- plan 35 ;
4
+ plan 39 ;
5
5
6
6
is { sub a (Int $ a ) { $ a }; a Int }(), Int , ' can Int take an Int:U' ;
7
7
is { sub a (Int $ a ) { $ a }; a 42 }(), 42 , ' can Int take an Int:D' ;
@@ -87,4 +87,10 @@ throws-like 'use parameters :foo',
87
87
name => ' foo' ,
88
88
' does use parameters :foo fail' ;
89
89
90
+ # RT #127841
91
+ is Int : U . gist , ' (Int:U)' , ' .gist on :U smileys' ;
92
+ is Proc ::Async: U . gist , ' (Async:U)' , ' .gist on :U smileys uses shortname' ;
93
+ is Int : D . gist , ' (Int:D)' , ' .gist on :D smileys' ;
94
+ is Proc ::Async: D . gist , ' (Async:D)' , ' .gist on :D smileys uses shortname' ;
95
+
90
96
# vim: ft=perl6
Original file line number Diff line number Diff line change 1
1
use v6 ;
2
2
use Test ;
3
- plan 22 ;
3
+ plan 20 ;
4
4
5
5
# coercion types in parameter lists
6
6
{
@@ -96,10 +96,6 @@ class NastyChild is Parent { };
96
96
isa-ok Co. invocant , SubCo, ' Can coerce invocant to subclass' ;
97
97
}
98
98
99
- # RT #127841
100
- is Int : U . gist , ' (Int:U)' , ' .gist on coercion types' ;
101
- is Proc ::Async: U . gist , ' (Async:U)' , ' .gist on coercion types uses shortname' ;
102
-
103
99
is Str (Any ). gist , ' (Str(Any))' , ' Can gist a coercion type' ;
104
100
105
101
# RT #131611
You can’t perform that action at this time.
0 commit comments