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

MMD on subset types fails for short name #823

Closed
p6rt opened this issue Mar 22, 2009 · 5 comments
Closed

MMD on subset types fails for short name #823

p6rt opened this issue Mar 22, 2009 · 5 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Mar 22, 2009

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

Searchable as RT64098$

@p6rt
Copy link
Author

p6rt commented Mar 22, 2009

From @moritz

class Object is also {
  method f { 'Object' };
}

class Bool is also {
  method f { 'Bool' };
}

say True.f; # Object
say Bool​::True.f; # Bool

For the short name it picks up the method defined in Object, not in the more
specific type. This defect also makes True.perl output the Wrong Thing™.

Possibly related​:

./perl6 -e 'say True ~~ False'
Method 'ACCEPTS' not found for invocant of class ''
current instr.​: 'infix​:~~' pc 19533 (src/builtins/match.pir​:18)
called from Sub '_block14' pc 67 (EVAL_16​:40)
called from Sub '!UNIT_START' pc 17513 (src/builtins/guts.pir​:350)
called from Sub 'parrot;PCT;HLLCompiler;eval' pc 950
(src/PCT/HLLCompiler.pir​:527)
called from Sub 'parrot;PCT;HLLCompiler;command_line' pc 1510
(src/PCT/HLLCompiler.pir​:798)
called from Sub 'parrot;Perl6;Compiler;main' pc 21852 (perl6.pir​:164)

@p6rt
Copy link
Author

p6rt commented May 7, 2009

From @moritz

Works now, needs tests. jnthn++

@p6rt
Copy link
Author

p6rt commented May 7, 2009

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

@p6rt
Copy link
Author

p6rt commented May 8, 2009

From @moritz

Tested in t/spec/S12-enums/thorough.t.

Moritz

@p6rt
Copy link
Author

p6rt commented May 8, 2009

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

@p6rt p6rt closed this as completed May 8, 2009
@p6rt p6rt added the Bug label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant