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

error message when no parametric role candidate found #4514

Open
p6rt opened this issue Sep 5, 2015 · 2 comments
Open

error message when no parametric role candidate found #4514

p6rt opened this issue Sep 5, 2015 · 2 comments
Labels
LTA Less Than Awesome; typically an error message that could be better

Comments

@p6rt
Copy link

p6rt commented Sep 5, 2015

Migrated from rt.perl.org#125997 (status was 'new')

Searchable as RT125997$

@p6rt
Copy link
Author

p6rt commented Sep 5, 2015

From @dakkar

This code​::

  role R[$a,$b] {}
  class C does R[1] {}

  C.new;

Produces the error message​::

  ===SORRY!===
  No appropriate parametric role variant available for 'R'

It would be nice to know a line number, and the signatures involved,
like we get for subs.

--
  Dakkar - <Mobilis in mobile>
  GPG public key fingerprint = A071 E618 DD2C 5901 9574
  6FE2 40EA 9883 7519 3F88
  key id = 0x75193F88

  As a math atheist, I think I should be excused from this.
  --- Calvin, to Hobbes

@p6rt p6rt added the LTA Less Than Awesome; typically an error message that could be better label Jan 5, 2020
@usev6
Copy link

usev6 commented Apr 10, 2021

Could be resolved together with #4513.

$ cat >gh_old_4514.raku
 role R[$a,$b] {};
 class C does R[1] {};
 C.new;
$ ./rakudo-m gh_old_4514.raku 
===SORRY!=== Error while compiling /path/to/gh_old_4514.raku
No appropriate parametric role variant available for 'R':
    Cannot resolve caller (C, Int:D); none of these signatures match:
        (::$?CLASS ::::?CLASS Mu, Mu $a, Mu $b)
at /path/to/gh_old_4514.raku:2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
LTA Less Than Awesome; typically an error message that could be better
Projects
None yet
Development

No branches or pull requests

2 participants