New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"does" is somehow not generating creating an updated meta-class or something #1350
Comments
From @ilyabelikinihrd: rakudo: role R { method foo { ... } }; class C {}; (C.new does Ilya Belikin aka Ihrd |
From @jnthnOn Thu Oct 08 04:52:35 2009, ihrd wrote:
Just tried this now:
So, seems to work; given to moritz++ for spectests. Thanks, Jonathan |
The RT System itself - Status changed from 'new' to 'open' |
@moritz - Status changed from 'open' to 'resolved' |
From @kylehaThis is an automatically generated mail to inform you that tests are now available in t/spec/S14-roles/mixin.t commit 2ce38eb31607f3b0e8ca097353deb73df7597e5a [t/spec] test for RT #69654 - mixing in method with "does" should make those methods show up in introspection Inline Patchdiff --git a/t/spec/S14-roles/mixin.t b/t/spec/S14-roles/mixin.t
index a03050e..11276dd 100644
--- a/t/spec/S14-roles/mixin.t
+++ b/t/spec/S14-roles/mixin.t
@@ -1,6 +1,6 @@
use v6;
use Test;
-plan 22;
+plan 23;
# L<S14/Run-time Mixins/>
@@ -97,5 +97,12 @@ is $y.test, 42, 'method from other role was OK too';
'can mix R4b into an Array, and access the attribute';
}
+# RT #69654
+{
+ role ProvidesFoo { method foo { } }
+ class NoFoo { };
+ is (NoFoo.new does ProvidesFoo).^methods(:local)>>.name, 'foo',
+ 'mixin with "does" lists method during introspection';
+}
# vim: syn=perl6 |
Migrated from rt.perl.org#69654 (status was 'resolved')
Searchable as RT69654$
The text was updated successfully, but these errors were encountered: