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

Strange type object-related error when doing a junction in a subtype with the same nominal check several times in Rakudo #1691

Closed
p6rt opened this issue Apr 13, 2010 · 6 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Apr 13, 2010

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

Searchable as RT74352$

@p6rt
Copy link
Author

p6rt commented Apr 13, 2010

From @masak

<masak> rakudo​: subset A of Array; subset B of A; subset C of A;
subset D of A where B & C; say [] ~~ D
<p6eval> rakudo 3b5a79​: OUTPUT«Type objects are abstract and have no
attributes, but you tried to access [...]
* masak submits rakudobug
<masak> it appears to be a combination of doing the nominal A check
multiple times, and the &
<masak> rakudo​: subset A of Array; subset B of A; subset C of Any;
subset D of A where B & C; say [] ~~ D
<p6eval> rakudo 3b5a79​: OUTPUT«Type objects are abstract and have no
attributes, but you tried to access [...]
<masak> rakudo​: subset A of Array; subset B of Any; subset C of Any;
subset D of A where B & C; say [] ~~ D
<p6eval> rakudo 3b5a79​: OUTPUT«1␤»

Also, 'tried to access' what exactly?

@p6rt
Copy link
Author

p6rt commented Aug 18, 2010

From @coke

On Tue Apr 13 09​:22​:39 2010, masak wrote​:

<masak> rakudo​: subset A of Array; subset B of A; subset C of A;
subset D of A where B & C; say [] ~~ D
<p6eval> rakudo 3b5a79​: OUTPUT«Type objects are abstract and have no
attributes, but you tried to access [...]
* masak submits rakudobug
<masak> it appears to be a combination of doing the nominal A check
multiple times, and the &
<masak> rakudo​: subset A of Array; subset B of A; subset C of Any;
subset D of A where B & C; say [] ~~ D
<p6eval> rakudo 3b5a79​: OUTPUT«Type objects are abstract and have no
attributes, but you tried to access [...]
<masak> rakudo​: subset A of Array; subset B of Any; subset C of Any;
subset D of A where B & C; say [] ~~ D
<p6eval> rakudo 3b5a79​: OUTPUT«1␤»

Also, 'tried to access' what exactly?

Slightly more verbose now​:

00​:35 <p6eval> rakudo 67778a​: OUTPUT«Type objects are abstract and have no
  attributes, but you tried to access $!flat␤ in 'infix​:<&>' at
  line 1␤ in <anon> at line 22​:/tmp/hSDtzs8cFQ␤ in
  'Block​::ACCEPTS' at line 5766​:CORE.setting␤ in 'ACCEPTS' at
  line 984​:CORE.setting␤ in 'ACCEPTS' at line 981​:CORE.setting␤

--
Will "Coke" Coleda

@p6rt
Copy link
Author

p6rt commented Aug 18, 2010

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

@p6rt
Copy link
Author

p6rt commented May 29, 2012

From @diakopter

On Tue Aug 17 21​:36​:24 2010, coke wrote​:

On Tue Apr 13 09​:22​:39 2010, masak wrote​:

<masak> rakudo​: subset A of Array; subset B of A; subset C of A;
subset D of A where B & C; say [] ~~ D
<p6eval> rakudo 3b5a79​: OUTPUT«Type objects are abstract and have no
attributes, but you tried to access [...]
* masak submits rakudobug
<masak> it appears to be a combination of doing the nominal A check
multiple times, and the &
<masak> rakudo​: subset A of Array; subset B of A; subset C of Any;
subset D of A where B & C; say [] ~~ D
<p6eval> rakudo 3b5a79​: OUTPUT«Type objects are abstract and have no
attributes, but you tried to access [...]
<masak> rakudo​: subset A of Array; subset B of Any; subset C of Any;
subset D of A where B & C; say [] ~~ D
<p6eval> rakudo 3b5a79​: OUTPUT«1␤»

Also, 'tried to access' what exactly?

Slightly more verbose now​:

00​:35 <p6eval> rakudo 67778a​: OUTPUT«Type objects are abstract and
have no
attributes, but you tried to access $!flat␤ in
'infix​:<&>' at
line 1␤ in <anon> at line 22​:/tmp/hSDtzs8cFQ␤ in
'Block​::ACCEPTS' at line 5766​:CORE.setting␤ in
'ACCEPTS' at
line 984​:CORE.setting␤ in 'ACCEPTS' at line
981​:CORE.setting␤

an even worse error now​:

15​:40 <diakopter> rakudo​: subset A of Array; subset B of A; subset C of
A;subset D of A
  where B & C; say [] ~~ D
15​:40 <p6eval> rakudo 3b1596​: OUTPUT«Type check failed in assignment to
'$v'; expected 'Mu'
  but got 'B'␤ in method REIFY at
src/gen/CORE.setting​:5655␤ in method reify
  at src/gen/CORE.setting​:4949␤ in method reify at
src/gen/CORE.setting​:4936␤
  in method gimme at src/gen/CORE.setting​:5323␤ in metho…

@p6rt
Copy link
Author

p6rt commented Feb 26, 2013

From @timo

this has since been fixed. There's a test in S02-types/subset.t, too.

@p6rt
Copy link
Author

p6rt commented Feb 26, 2013

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

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