Skip to content
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

Mixing into the type object gives LTA error message #1954

Closed
p6rt opened this issue Jul 27, 2010 · 5 comments
Closed

Mixing into the type object gives LTA error message #1954

p6rt opened this issue Jul 27, 2010 · 5 comments

Comments

@p6rt
Copy link

p6rt commented Jul 27, 2010

Migrated from rt.perl.org#76742 (status was 'resolved')

Searchable as RT76742$

@p6rt
Copy link
Author

p6rt commented Jul 27, 2010

From @moritz

10​:50 < moritz_> rakudo​: Bool does role { method Str() { $.perl } }; say
  ~Bool​::True
10​:50 <+p6eval> rakudo 9808d7​: OUTPUT«Attempt to use rebless_subclass
where the new class was not a subclass␤ in 'infix​:<does>' at line
6379​:CORE.setting␤ in 'infix​:<does>' at line 525​:CORE.setting␤
  in main program body at line 22​:/tmp/vsMNEIdThV␤»

@p6rt
Copy link
Author

p6rt commented Jul 29, 2010

@coke - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Jan 13, 2012

From @jnthn

On Tue Jul 27 01​:53​:17 2010, moritz wrote​:

10​:50 < moritz_> rakudo​: Bool does role { method Str() { $.perl } }; say
~Bool​::True
10​:50 <+p6eval> rakudo 9808d7​: OUTPUT«Attempt to use rebless_subclass
where the new class was not a subclass␤ in 'infix​:<does>' at line
6379​:CORE.setting␤ in 'infix​:<does>' at line 525​:CORE.setting␤
in main program body at line 22​:/tmp/vsMNEIdThV␤»

Better now​:

Bool does role { method Str() { $.perl } }; say ~Bool​::True
Cannot use 'does' operator with a type object

Guess we want to test this, or give it a typed exception...tagging
testneeded.

/jnthn

@p6rt
Copy link
Author

p6rt commented Nov 25, 2012

From @FROGGS

Test​:
Raku/roast@e87efa1

@p6rt
Copy link
Author

p6rt commented Nov 25, 2012

@FROGGS - Status changed from 'open' to 'resolved'

@p6rt p6rt closed this as completed Nov 25, 2012
@p6rt p6rt added the testneeded label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant