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

UInt:D parameter fails in a multi #4748

Closed
p6rt opened this issue Nov 14, 2015 · 5 comments
Closed

UInt:D parameter fails in a multi #4748

p6rt opened this issue Nov 14, 2015 · 5 comments

Comments

@p6rt
Copy link

p6rt commented Nov 14, 2015

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

Searchable as RT126642$

@p6rt
Copy link
Author

p6rt commented Nov 14, 2015

From @grondilu

$ perl6 --version
This is perl6 version 2015.10-294-gcc1ba30 built on MoarVM version
2015.10-92-g0181385

$ perl6 -e 'multi f(UInt​:D $) { say "ok" }; f(1);'
===SORRY!===
Invocant requires an instance of type Int, but a type object was passed.
Did you forget a .new?

See also IRC log for this day.

@p6rt
Copy link
Author

p6rt commented Jul 21, 2017

From @dogbert17

On Sat, 14 Nov 2015 14​:06​:52 -0800, grondilu@​yahoo.fr wrote​:

$ perl6 --version
This is perl6 version 2015.10-294-gcc1ba30 built on MoarVM version
2015.10-92-g0181385

$ perl6 -e 'multi f(UInt​:D $) { say "ok" }; f(1);'
===SORRY!===
Invocant requires an instance of type Int, but a type object was passed.
Did you forget a .new?

See also IRC log for this day.

This was fixed with rakudo/rakudo@68afa3f.
I'm not sure if the tests in S12-subset/subtypes.t covers this, if they do then this issue should be
closed.

@p6rt
Copy link
Author

p6rt commented Jul 21, 2017

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

@p6rt
Copy link
Author

p6rt commented Jul 22, 2017

From @AlexDaniel

A test was added in Raku/roast@84e5309

dogbert17++
On 2017-07-21 12​:46​:12, jan-olof.hendig@​bredband.net wrote​:

On Sat, 14 Nov 2015 14​:06​:52 -0800, grondilu@​yahoo.fr wrote​:

$ perl6 --version
This is perl6 version 2015.10-294-gcc1ba30 built on MoarVM version
2015.10-92-g0181385

$ perl6 -e 'multi f(UInt​:D $) { say "ok" }; f(1);'
===SORRY!===
Invocant requires an instance of type Int, but a type object was
passed.
Did you forget a .new?

See also IRC log for this day.

This was fixed with
rakudo/rakudo@68afa3f.
I'm not sure if the tests in S12-subset/subtypes.t covers this, if
they do then this issue should be
closed.

@p6rt p6rt closed this as completed Jul 22, 2017
@p6rt
Copy link
Author

p6rt commented Jul 22, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant