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

LTA error when the signatures of a stubbed method from a role and a class don't match #3152

Closed
p6rt opened this issue Jun 1, 2013 · 5 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Jun 1, 2013

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

Searchable as RT118263$

@p6rt
Copy link
Author

p6rt commented Jun 1, 2013

From @timo

In this code

role Command {
  method execute { ... }
}

class EchoCommand is Command {
  method execute(Str $echostring) { shell "echo '$echostring'" }
}

gives the following error​:

===SORRY!===
Method 'execute' must be implemented by Command because it is required by a role
at foobar.p6​:6
------>

It would be cool if it would acknowledge, that there is a message, but the
signatures don't match.

@p6rt
Copy link
Author

p6rt commented Jun 1, 2013

From @timo

actually, this happened due to using "is" instead of "does".

Should there be a different error message when making a "class" that "is"
a "role"?

@p6rt
Copy link
Author

p6rt commented Jun 1, 2013

The RT System itself - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Apr 24, 2017

From @MasterDuke17

Fixed in rakudo/rakudo#1068
Test added in rakudo/rakudo#1070

@p6rt
Copy link
Author

p6rt commented Apr 24, 2017

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

@p6rt p6rt closed this as completed Apr 24, 2017
@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