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

Using ::Foo type capture as default causes inconsistent bind result #6534

Open
p6rt opened this issue Sep 26, 2017 · 1 comment
Open

Using ::Foo type capture as default causes inconsistent bind result #6534

p6rt opened this issue Sep 26, 2017 · 1 comment

Comments

@p6rt
Copy link

p6rt commented Sep 26, 2017

Migrated from rt.perl.org#132169 (status was 'new')

Searchable as RT132169$

@p6rt
Copy link
Author

p6rt commented Sep 26, 2017

From @zoffixznet

IRC​: https://irclog.perlgeek.de/perl6/2017-09-26#i_15219996

I kinda expected the first version to work without trouble​:

19​:02 Zoffix m​: role Irrational[​::NuT = Int, :​:DeT = NuT] does Real { method new(NuT \nu = 0, DeT \de = 1) {self.bless} }; Irrational.new.^roles.say
19​:02 camelia rakudo-moar 6ec21c​: OUTPUT​: «Internal error​: inconsistent bind result␤ in method new at <tmp> line 1␤ in block <unit> at <tmp> line 1␤␤»

19​:04 m​: role Irrational[​::NuT = Int, :​:DeT = :​:("NuT")] does Real { method new(NuT \nu = 0, DeT \de = 1) {self.bless} }; Irrational.new.^roles.say
19​:04 camelia rakudo-moar 6ec21c​: OUTPUT​: «((Irrational) (Real) (Numeric))␤»

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