We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9263645 commit 985d992Copy full SHA for 985d992
S11-modules/export.t
@@ -1,7 +1,7 @@
1
use v6;
2
use Test;
3
4
-plan 40;
+plan 41;
5
6
# L<S11/"Exportation"/>
7
@@ -179,4 +179,17 @@ ok( ! &EXPORT::DEFAULT::exp_my_tag,
179
'adequate error message when multi sub exported out of a module fails to bind to an argument that happens to be a block';
180
}
181
182
+# RT #125715
183
+{
184
+ use lib 't/spec/packages';
185
+ use RT125715;
186
+
187
+ my class Baz {
188
+ has Bar $.bar;
189
+ }
190
191
+ lives-ok { Baz.new(bar => Bar.new) },
192
+ 'Using EXPORT-d type as attribute type works';
193
+}
194
195
# vim: ft=perl6
packages/RT125715.pm6
@@ -0,0 +1,2 @@
+class Foo {}
+sub EXPORT(|){ { 'Bar' => Foo } }
0 commit comments