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 message when misspelling a type name after inheritance 'is' in class declaration in Rakudo #2076

Closed
p6rt opened this issue Aug 17, 2010 · 3 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Aug 17, 2010

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

Searchable as RT77272$

@p6rt
Copy link
Author

p6rt commented Aug 17, 2010

From @masak

<masak> rakudo​: class A is NoSuchType {}
<p6eval> rakudo 85602a​: OUTPUT«===SORRY!===␤No applicable candidates
found to dispatch to for 'trait_mod​:<is>'. Available candidates
are​:␤​:(Mu $child, Role $r)␤​:(Routine $r, Any
:default($default)!)␤​:(Code $block, Any $arg?, Any
:export($export)!)␤​:(Mu $child, Mu $parent)␤​:(Mu $type where ({ ...
}), Any [...]
<masak> when I make a typo in the type after 'is', I'm less interested
in the available candidates to trait_mod​:<is> and more interested in
line number and file.
* masak submits rakudobug

@p6rt
Copy link
Author

p6rt commented Jan 19, 2013

From @timo

the "levensthein" branch made the error much better​:

'FancyClass' cannot inherit from 'Junctian' because it is unknown.
Did you mean 'Junction'?

'FancyClass' cannot inherit from 'Unt' because it is unknown.
Did you mean one of these?
  'Int'
  'int'

'FancyClass' cannot inherit from 'NoSuchType' because it is unknown.

@p6rt
Copy link
Author

p6rt commented Jan 19, 2013

@timo - Status changed from 'new' to 'resolved'

@p6rt p6rt closed this as completed Jan 19, 2013
@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