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 a class inherits from itself in Rakudo #1508

Closed
p6rt opened this issue Feb 15, 2010 · 6 comments
Closed

LTA error message when a class inherits from itself in Rakudo #1508

p6rt opened this issue Feb 15, 2010 · 6 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Feb 15, 2010

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

Searchable as RT72842$

@p6rt
Copy link
Author

p6rt commented Feb 15, 2010

From @masak

<diakopter> rakudo​: class class is class { }
<p6eval> rakudo 70667a​: OUTPUT«No applicable candidates found to
dispatch to for 'trait_mod​:<is>' [...]
<masak> rakudo​: class A is A {}
<p6eval> rakudo 70667a​: OUTPUT«No applicable candidates found to
dispatch to for 'trait_mod​:<is>' [...]
<jnthn> Well, at least we kinda get that one right...
<jnthn> Though we probably want a fallback trait_mod​:is
<masak> rakudo​: class A {}; class B is A {}
<p6eval> rakudo 70667a​: ( no output )
* masak submits LTA rakudobug

Error message should probably say something about circular inheritance.

@p6rt
Copy link
Author

p6rt commented Jul 28, 2010

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

@p6rt
Copy link
Author

p6rt commented Sep 13, 2011

From @bbkr

NOM​: still LTA message

bbkr​:nom bbkr$ ./perl6 -e 'class class is class { }'
===SORRY!===
No applicable candidates found to dispatch to for 'trait_mod​:<is>'.
Available candidates are​:
:(Attribute $attr, Any $rw)
:(Attribute $attr, Any $readonly)
:(Routine $r, Any $rw)
:(Parameter $param, Any $readonly)
:(Parameter $param, Any $rw)
:(Parameter $param, Any $copy)
:(Routine $r, Any $export)
:(Mu $docee, Any $doc, Any $docs)
:(Mu $docee, Any $doc, Any $docs)
:(Routine $r, Any $hidden_from_backtrace)
:(Mu $child, Mu $parent)
:(Mu $type, Any $rw)

@p6rt
Copy link
Author

p6rt commented Aug 8, 2012

From @bbkr

2012.07 star, still broken

$ perl6 -e 'class class is class { }'
===SORRY!===
Cannot call 'trait_mod​:<is>'; none of these signatures match​:
:(Mu​:U $child, Mu​:U $parent)
:(Attribute​:D $attr, :rw(​:$rw)!)
:(Attribute​:D $attr, :readonly(​:$readonly)!)
:(Attribute​:D $attr, :box_target(​:$box_target)!)
:(Routine​:D $r, :rw(​:$rw)!)
:(Routine​:D $r, :default(​:$default)!)
:(Routine​:D $r, :DEPRECATED(​:$DEPRECATED)!)
:(Routine​:D $r, :inlinable(​:$inlinable)!)
:(Parameter​:D $param, :readonly(​:$readonly)!)
:(Parameter​:D $param, :rw(​:$rw)!)
:(Parameter​:D $param, :copy(​:$copy)!)
:(Parameter​:D $param, :required(​:$required)!)
:(Parameter​:D $param, :parcel(​:$parcel)!)
:(Routine​:D \$r, :export(​:$export)!)
:(Routine​:D $r, :hidden_from_backtrace(​:$hidden_from_backtrace)!)
:(Mu​:U $type, :rw(​:$rw)!)
:(Mu​:U $type, :nativesize(​:$nativesize)!)
:(Mu​:U \$type, :export(​:$export)!)
:(Mu​:D $docee, :docs(​:$docs)!)
:(Mu​:U $docee, :docs(​:$docs)!)

@p6rt
Copy link
Author

p6rt commented Nov 7, 2013

From @timo

I fixed this ~10 months ago in rakudo commit 84271ddeea4.

New behavior​:

% ./perl6 -e 'class A is A { };'
===SORRY!=== Error while compiling -e
'A' cannot inherit from itself.
at -e​:1
------>

There are also tests in roast in S32-exceptions/misc.t.

@p6rt
Copy link
Author

p6rt commented Nov 7, 2013

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

@p6rt p6rt closed this as completed Nov 7, 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