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

Rakudo reports a type mismatch in assignment when typing an attribute with a role #670

Closed
p6rt opened this issue Feb 1, 2009 · 4 comments

Comments

@p6rt
Copy link

p6rt commented Feb 1, 2009

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

Searchable as RT62966$

@p6rt
Copy link
Author

p6rt commented Feb 1, 2009

From @masak

With Rakudo 153a4a8 on Parrot r36239, I get the following​:

$ perl6 -e 'role A {}; class B { has A $!a }; B.new'
Type mismatch in assignment.
[...]

I see nothing wrong with the above, so I don't think the error is justified.

@p6rt
Copy link
Author

p6rt commented Mar 13, 2009

From @jnthn

On Sun Feb 01 02​:19​:22 2009, masak wrote​:

With Rakudo 153a4a8 on Parrot r36239, I get the following​:

$ perl6 -e 'role A {}; class B { has A $!a }; B.new'
Type mismatch in assignment.
[...]

I see nothing wrong with the above, so I don't think the error is
justified.

Aye, there were a range of quirks/issues in role type checking, which
I've now fixed in git 88b6c25. Plus added some tests for roles being
used as type constraints.

Thanks,

Jonathan

@p6rt
Copy link
Author

p6rt commented Mar 13, 2009

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

@p6rt
Copy link
Author

p6rt commented Mar 13, 2009

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

@p6rt p6rt closed this as completed Mar 13, 2009
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant