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

"Invalid BUILD_LEAST_DERIVED plan" when but-ing a role with native-int attribute #6199

Closed
p6rt opened this issue Apr 20, 2017 · 4 comments
Closed
Labels

Comments

@p6rt
Copy link

p6rt commented Apr 20, 2017

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

Searchable as RT131181$

@p6rt
Copy link
Author

p6rt commented Apr 20, 2017

From @zoffixznet

14​:51 Zoffix m​: $ = 42 but role { has int $!x }
14​:51 camelia rakudo-moar 277b6e​: ( no output )
14​:51 Zoffix m​: $ = 42 but role { has Int $!x = 42 }
14​:51 camelia rakudo-moar 277b6e​: ( no output )
14​:51 Zoffix m​: $ = 42 but role { has int $!x = 42 }
14​:51 camelia rakudo-moar 277b6e​: OUTPUT​: «Invalid BUILD_LEAST_DERIVED plan␤ in block <unit> at <tmp> line 1␤␤»

@p6rt
Copy link
Author

p6rt commented Apr 29, 2017

From @jnthn

On Thu, 20 Apr 2017 07​:53​:23 -0700, cpan@​zoffix.com wrote​:

14​:51 Zoffix m​: $ = 42 but role { has int $!x }
14​:51 camelia rakudo-moar 277b6e​: ( no output )
14​:51 Zoffix m​: $ = 42 but role { has Int $!x = 42 }
14​:51 camelia rakudo-moar 277b6e​: ( no output )
14​:51 Zoffix m​: $ = 42 but role { has int $!x = 42 }
14​:51 camelia rakudo-moar 277b6e​: OUTPUT​: «Invalid
BUILD_LEAST_DERIVED plan␤ in block <unit> at <tmp> line 1␤␤»

Fixed (plus the num and str cases too) and test added to S12-attributes/defaults.t.

@p6rt
Copy link
Author

p6rt commented Apr 29, 2017

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

@p6rt p6rt closed this as completed Apr 29, 2017
@p6rt
Copy link
Author

p6rt commented Apr 29, 2017

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

@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